diff options
author | Jiri Pirko <jiri@resnulli.us> | 2015-01-13 11:13:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-13 17:51:08 -0500 |
commit | df8a39defad46b83694ea6dd868d332976d62cc0 (patch) | |
tree | fe19bca0c2788033d49686babfc7b3853fa13340 /net/packet | |
parent | d8b9605d2697c48fb822c821c5751afbb4567003 (diff) |
net: rename vlan_tx_* helpers since "tx" is misleading there
The same macros are used for rx as well. So rename it.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 0f02668dc219..d37075b0d6d5 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -986,8 +986,8 @@ static void prb_clear_rxhash(struct tpacket_kbdq_core *pkc, | |||
986 | static void prb_fill_vlan_info(struct tpacket_kbdq_core *pkc, | 986 | static void prb_fill_vlan_info(struct tpacket_kbdq_core *pkc, |
987 | struct tpacket3_hdr *ppd) | 987 | struct tpacket3_hdr *ppd) |
988 | { | 988 | { |
989 | if (vlan_tx_tag_present(pkc->skb)) { | 989 | if (skb_vlan_tag_present(pkc->skb)) { |
990 | ppd->hv1.tp_vlan_tci = vlan_tx_tag_get(pkc->skb); | 990 | ppd->hv1.tp_vlan_tci = skb_vlan_tag_get(pkc->skb); |
991 | ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto); | 991 | ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto); |
992 | ppd->tp_status = TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; | 992 | ppd->tp_status = TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; |
993 | } else { | 993 | } else { |
@@ -2000,8 +2000,8 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, | |||
2000 | h.h2->tp_net = netoff; | 2000 | h.h2->tp_net = netoff; |
2001 | h.h2->tp_sec = ts.tv_sec; | 2001 | h.h2->tp_sec = ts.tv_sec; |
2002 | h.h2->tp_nsec = ts.tv_nsec; | 2002 | h.h2->tp_nsec = ts.tv_nsec; |
2003 | if (vlan_tx_tag_present(skb)) { | 2003 | if (skb_vlan_tag_present(skb)) { |
2004 | h.h2->tp_vlan_tci = vlan_tx_tag_get(skb); | 2004 | h.h2->tp_vlan_tci = skb_vlan_tag_get(skb); |
2005 | h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto); | 2005 | h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto); |
2006 | status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; | 2006 | status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; |
2007 | } else { | 2007 | } else { |
@@ -3010,8 +3010,8 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
3010 | aux.tp_snaplen = skb->len; | 3010 | aux.tp_snaplen = skb->len; |
3011 | aux.tp_mac = 0; | 3011 | aux.tp_mac = 0; |
3012 | aux.tp_net = skb_network_offset(skb); | 3012 | aux.tp_net = skb_network_offset(skb); |
3013 | if (vlan_tx_tag_present(skb)) { | 3013 | if (skb_vlan_tag_present(skb)) { |
3014 | aux.tp_vlan_tci = vlan_tx_tag_get(skb); | 3014 | aux.tp_vlan_tci = skb_vlan_tag_get(skb); |
3015 | aux.tp_vlan_tpid = ntohs(skb->vlan_proto); | 3015 | aux.tp_vlan_tpid = ntohs(skb->vlan_proto); |
3016 | aux.tp_status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; | 3016 | aux.tp_status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; |
3017 | } else { | 3017 | } else { |