diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-11-19 08:04:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 14:20:17 -0500 |
commit | b4bef1b57544b18899eb15569e3bafd8d2eeeff6 (patch) | |
tree | 5f78030a09edac7df1e26c109d6aa2ef03927d5b /drivers/net/bonding | |
parent | b960a0ac6939ef4962c5abbf33e80d1382b45fc1 (diff) |
vlan: kill vlan_put_tag helper
Since both tx and rx paths work with skb->vlan_tci, there's no need for
this function anymore. Switch users directly to __vlan_hwaccel_put_tag.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 17 | ||||
-rw-r--r-- | drivers/net/bonding/bond_main.c | 8 |
2 files changed, 6 insertions, 19 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index e1f1a006af85..bb9e9fc45e1b 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -475,12 +475,8 @@ static void rlb_update_client(struct rlb_client_info *client_info) | |||
475 | skb->dev = client_info->slave->dev; | 475 | skb->dev = client_info->slave->dev; |
476 | 476 | ||
477 | if (client_info->vlan_id) { | 477 | if (client_info->vlan_id) { |
478 | skb = vlan_put_tag(skb, htons(ETH_P_8021Q), client_info->vlan_id); | 478 | __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), |
479 | if (!skb) { | 479 | client_info->vlan_id); |
480 | netdev_err(client_info->slave->bond->dev, | ||
481 | "failed to insert VLAN tag\n"); | ||
482 | continue; | ||
483 | } | ||
484 | } | 480 | } |
485 | 481 | ||
486 | arp_xmit(skb); | 482 | arp_xmit(skb); |
@@ -951,13 +947,8 @@ static void alb_send_lp_vid(struct slave *slave, u8 mac_addr[], | |||
951 | skb->priority = TC_PRIO_CONTROL; | 947 | skb->priority = TC_PRIO_CONTROL; |
952 | skb->dev = slave->dev; | 948 | skb->dev = slave->dev; |
953 | 949 | ||
954 | if (vid) { | 950 | if (vid) |
955 | skb = vlan_put_tag(skb, vlan_proto, vid); | 951 | __vlan_hwaccel_put_tag(skb, vlan_proto, vid); |
956 | if (!skb) { | ||
957 | netdev_err(slave->bond->dev, "failed to insert VLAN tag\n"); | ||
958 | return; | ||
959 | } | ||
960 | } | ||
961 | 952 | ||
962 | dev_queue_xmit(skb); | 953 | dev_queue_xmit(skb); |
963 | } | 954 | } |
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 8575fee8b359..e26c68232032 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -2159,12 +2159,8 @@ static void bond_arp_send(struct net_device *slave_dev, int arp_op, | |||
2159 | if (outer_tag->vlan_id) { | 2159 | if (outer_tag->vlan_id) { |
2160 | netdev_dbg(slave_dev, "outer tag: proto %X vid %X\n", | 2160 | netdev_dbg(slave_dev, "outer tag: proto %X vid %X\n", |
2161 | ntohs(outer_tag->vlan_proto), outer_tag->vlan_id); | 2161 | ntohs(outer_tag->vlan_proto), outer_tag->vlan_id); |
2162 | skb = vlan_put_tag(skb, outer_tag->vlan_proto, | 2162 | __vlan_hwaccel_put_tag(skb, outer_tag->vlan_proto, |
2163 | outer_tag->vlan_id); | 2163 | outer_tag->vlan_id); |
2164 | if (!skb) { | ||
2165 | net_err_ratelimited("failed to insert outer VLAN tag\n"); | ||
2166 | return; | ||
2167 | } | ||
2168 | } | 2164 | } |
2169 | 2165 | ||
2170 | xmit: | 2166 | xmit: |