Thread (43 messages) 43 messages, 10 authors, 2024-06-20

Re: [PATCH 1/3] mctp pcc: Implement MCTP over PCC Transport

From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-05-13 20:22:14
Also in: lkml

+struct mctp_pcc_hw_addr {
+	int inbox_index;
+	int outbox_index;
+};
+static void  mctp_pcc_setup(struct net_device *ndev)
+{
+	ndev->type = ARPHRD_MCTP;
+	ndev->hard_header_len = 0;
+	ndev->addr_len = sizeof(struct mctp_pcc_hw_addr);
Another reason you should be using u32. ndev->addr_len is going to
vary between 32 and 64 bit systems. I also wounder if when calling
dev_addr_set() these need to be byte swapped? Does the specification
define this?

     Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help