Skip to content

Commit

Permalink
datapath: Rename skb_network_protocol() to __skb_network_protocol()
Browse files Browse the repository at this point in the history
The function skb_network_protocol() is already defined in
<linux/netdevice.h> upstream but not an exported symbol.

Rename the OVS internal implementation to work around this.

Signed-off-by: Thomas Graf <[email protected]>
Signed-off-by: Jesse Gross <[email protected]>
  • Loading branch information
Thomas Graf authored and jessegross committed Jul 9, 2013
1 parent 3fc5378 commit 47916a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datapath/linux/compat/gso.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include "gso.h"

static __be16 skb_network_protocol(struct sk_buff *skb)
static __be16 __skb_network_protocol(struct sk_buff *skb)
{
__be16 type = skb->protocol;
int vlan_depth = ETH_HLEN;
Expand Down Expand Up @@ -68,7 +68,7 @@ static struct sk_buff *tnl_skb_gso_segment(struct sk_buff *skb,

/* setup whole inner packet to get protocol. */
__skb_pull(skb, mac_offset);
skb->protocol = skb_network_protocol(skb);
skb->protocol = __skb_network_protocol(skb);

/* setup l3 packet to gso, to get around segmentation bug on older kernel.*/
__skb_pull(skb, (pkt_hlen - mac_offset));
Expand Down

0 comments on commit 47916a6

Please sign in to comment.