Thread (12 messages) 12 messages, 3 authors, 2018-03-01

Re: [PATCH 4/6] net: make skb_gso_*_seglen functions private

flat view

From: David Miller <davem@davemloft.net>
Date: 2018-02-28 15:53:57

From: Daniel Axtens <redacted>
Date: Wed, 28 Feb 2018 00:04:05 +1100
quoted hunk ↗ jump to hunk
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 0c0c1d6f28ef..a664a3ae507e 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -4893,7 +4893,7 @@ EXPORT_SYMBOL_GPL(skb_scrub_packet);
  *
  * The MAC/L2 or network (IP, IPv6) headers are not accounted for.
  */
-unsigned int skb_gso_transport_seglen(const struct sk_buff *skb)
+static inline unsigned int skb_gso_transport_seglen(const struct sk_buff *skb)
 ...
+static inline unsigned int skb_gso_network_seglen(const struct sk_buff *skb)
 ...
+static inline unsigned int skb_gso_mac_seglen(const struct sk_buff *skb)
Please drop the inline keyword.  Functions in foo.c files should not be
marked inline, let the compiler decide whether it's beneficial to
inline or not.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help