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/core | |
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/core')
-rw-r--r-- | net/core/dev.c | 10 | ||||
-rw-r--r-- | net/core/netpoll.c | 2 | ||||
-rw-r--r-- | net/core/skbuff.c | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 805456147c30..1e325adc4367 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2578,7 +2578,7 @@ netdev_features_t netif_skb_features(struct sk_buff *skb) | |||
2578 | if (skb->encapsulation) | 2578 | if (skb->encapsulation) |
2579 | features &= dev->hw_enc_features; | 2579 | features &= dev->hw_enc_features; |
2580 | 2580 | ||
2581 | if (!vlan_tx_tag_present(skb)) { | 2581 | if (!skb_vlan_tag_present(skb)) { |
2582 | if (unlikely(protocol == htons(ETH_P_8021Q) || | 2582 | if (unlikely(protocol == htons(ETH_P_8021Q) || |
2583 | protocol == htons(ETH_P_8021AD))) { | 2583 | protocol == htons(ETH_P_8021AD))) { |
2584 | struct vlan_ethhdr *veh = (struct vlan_ethhdr *)skb->data; | 2584 | struct vlan_ethhdr *veh = (struct vlan_ethhdr *)skb->data; |
@@ -2659,7 +2659,7 @@ out: | |||
2659 | static struct sk_buff *validate_xmit_vlan(struct sk_buff *skb, | 2659 | static struct sk_buff *validate_xmit_vlan(struct sk_buff *skb, |
2660 | netdev_features_t features) | 2660 | netdev_features_t features) |
2661 | { | 2661 | { |
2662 | if (vlan_tx_tag_present(skb) && | 2662 | if (skb_vlan_tag_present(skb) && |
2663 | !vlan_hw_offload_capable(features, skb->vlan_proto)) | 2663 | !vlan_hw_offload_capable(features, skb->vlan_proto)) |
2664 | skb = __vlan_hwaccel_push_inside(skb); | 2664 | skb = __vlan_hwaccel_push_inside(skb); |
2665 | return skb; | 2665 | return skb; |
@@ -3676,7 +3676,7 @@ ncls: | |||
3676 | if (pfmemalloc && !skb_pfmemalloc_protocol(skb)) | 3676 | if (pfmemalloc && !skb_pfmemalloc_protocol(skb)) |
3677 | goto drop; | 3677 | goto drop; |
3678 | 3678 | ||
3679 | if (vlan_tx_tag_present(skb)) { | 3679 | if (skb_vlan_tag_present(skb)) { |
3680 | if (pt_prev) { | 3680 | if (pt_prev) { |
3681 | ret = deliver_skb(skb, pt_prev, orig_dev); | 3681 | ret = deliver_skb(skb, pt_prev, orig_dev); |
3682 | pt_prev = NULL; | 3682 | pt_prev = NULL; |
@@ -3708,8 +3708,8 @@ ncls: | |||
3708 | } | 3708 | } |
3709 | } | 3709 | } |
3710 | 3710 | ||
3711 | if (unlikely(vlan_tx_tag_present(skb))) { | 3711 | if (unlikely(skb_vlan_tag_present(skb))) { |
3712 | if (vlan_tx_tag_get_id(skb)) | 3712 | if (skb_vlan_tag_get_id(skb)) |
3713 | skb->pkt_type = PACKET_OTHERHOST; | 3713 | skb->pkt_type = PACKET_OTHERHOST; |
3714 | /* Note: we might in the future use prio bits | 3714 | /* Note: we might in the future use prio bits |
3715 | * and set skb->priority like in vlan_do_receive() | 3715 | * and set skb->priority like in vlan_do_receive() |
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index e0ad5d16c9c5..c126a878c47c 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -77,7 +77,7 @@ static int netpoll_start_xmit(struct sk_buff *skb, struct net_device *dev, | |||
77 | 77 | ||
78 | features = netif_skb_features(skb); | 78 | features = netif_skb_features(skb); |
79 | 79 | ||
80 | if (vlan_tx_tag_present(skb) && | 80 | if (skb_vlan_tag_present(skb) && |
81 | !vlan_hw_offload_capable(features, skb->vlan_proto)) { | 81 | !vlan_hw_offload_capable(features, skb->vlan_proto)) { |
82 | skb = __vlan_hwaccel_push_inside(skb); | 82 | skb = __vlan_hwaccel_push_inside(skb); |
83 | if (unlikely(!skb)) { | 83 | if (unlikely(!skb)) { |
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 5a2a2e887a12..56db472e9b86 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -4197,7 +4197,7 @@ struct sk_buff *skb_vlan_untag(struct sk_buff *skb) | |||
4197 | struct vlan_hdr *vhdr; | 4197 | struct vlan_hdr *vhdr; |
4198 | u16 vlan_tci; | 4198 | u16 vlan_tci; |
4199 | 4199 | ||
4200 | if (unlikely(vlan_tx_tag_present(skb))) { | 4200 | if (unlikely(skb_vlan_tag_present(skb))) { |
4201 | /* vlan_tci is already set-up so leave this for another time */ | 4201 | /* vlan_tci is already set-up so leave this for another time */ |
4202 | return skb; | 4202 | return skb; |
4203 | } | 4203 | } |
@@ -4283,7 +4283,7 @@ int skb_vlan_pop(struct sk_buff *skb) | |||
4283 | __be16 vlan_proto; | 4283 | __be16 vlan_proto; |
4284 | int err; | 4284 | int err; |
4285 | 4285 | ||
4286 | if (likely(vlan_tx_tag_present(skb))) { | 4286 | if (likely(skb_vlan_tag_present(skb))) { |
4287 | skb->vlan_tci = 0; | 4287 | skb->vlan_tci = 0; |
4288 | } else { | 4288 | } else { |
4289 | if (unlikely((skb->protocol != htons(ETH_P_8021Q) && | 4289 | if (unlikely((skb->protocol != htons(ETH_P_8021Q) && |
@@ -4313,7 +4313,7 @@ EXPORT_SYMBOL(skb_vlan_pop); | |||
4313 | 4313 | ||
4314 | int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) | 4314 | int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) |
4315 | { | 4315 | { |
4316 | if (vlan_tx_tag_present(skb)) { | 4316 | if (skb_vlan_tag_present(skb)) { |
4317 | unsigned int offset = skb->data - skb_mac_header(skb); | 4317 | unsigned int offset = skb->data - skb_mac_header(skb); |
4318 | int err; | 4318 | int err; |
4319 | 4319 | ||
@@ -4323,7 +4323,7 @@ int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) | |||
4323 | */ | 4323 | */ |
4324 | __skb_push(skb, offset); | 4324 | __skb_push(skb, offset); |
4325 | err = __vlan_insert_tag(skb, skb->vlan_proto, | 4325 | err = __vlan_insert_tag(skb, skb->vlan_proto, |
4326 | vlan_tx_tag_get(skb)); | 4326 | skb_vlan_tag_get(skb)); |
4327 | if (err) | 4327 | if (err) |
4328 | return err; | 4328 | return err; |
4329 | skb->protocol = skb->vlan_proto; | 4329 | skb->protocol = skb->vlan_proto; |