Thread (2 messages) 2 messages, 2 authors, 2021-12-06

Re: [PATCH net] net: lantiq_xrx200: increase buffer reservation

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-12-06 02:10:25
Also in: lkml

quoted hunk ↗ jump to hunk
+static inline int xrx200_max_frame_len(int mtu)
+{
+	return VLAN_ETH_HLEN + mtu + ETH_FCS_LEN;
+}
+
+static inline int xrx200_buffer_size(int mtu)
+{
+	return round_up(xrx200_max_frame_len(mtu) - 1, 4 * XRX200_DMA_BURST_LEN);
+}
Please don't use inline in .c files. Let the compiler decide.

       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