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/openvswitch | |
| 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/openvswitch')
| -rw-r--r-- | net/openvswitch/actions.c | 4 | ||||
| -rw-r--r-- | net/openvswitch/datapath.c | 2 | ||||
| -rw-r--r-- | net/openvswitch/flow.c | 4 | ||||
| -rw-r--r-- | net/openvswitch/vport-gre.c | 2 | ||||
| -rw-r--r-- | net/openvswitch/vport.c | 3 |
5 files changed, 8 insertions, 7 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index 770064c83711..b4cffe686126 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c | |||
| @@ -212,7 +212,7 @@ static int pop_vlan(struct sk_buff *skb, struct sw_flow_key *key) | |||
| 212 | int err; | 212 | int err; |
| 213 | 213 | ||
| 214 | err = skb_vlan_pop(skb); | 214 | err = skb_vlan_pop(skb); |
| 215 | if (vlan_tx_tag_present(skb)) | 215 | if (skb_vlan_tag_present(skb)) |
| 216 | invalidate_flow_key(key); | 216 | invalidate_flow_key(key); |
| 217 | else | 217 | else |
| 218 | key->eth.tci = 0; | 218 | key->eth.tci = 0; |
| @@ -222,7 +222,7 @@ static int pop_vlan(struct sk_buff *skb, struct sw_flow_key *key) | |||
| 222 | static int push_vlan(struct sk_buff *skb, struct sw_flow_key *key, | 222 | static int push_vlan(struct sk_buff *skb, struct sw_flow_key *key, |
| 223 | const struct ovs_action_push_vlan *vlan) | 223 | const struct ovs_action_push_vlan *vlan) |
| 224 | { | 224 | { |
| 225 | if (vlan_tx_tag_present(skb)) | 225 | if (skb_vlan_tag_present(skb)) |
| 226 | invalidate_flow_key(key); | 226 | invalidate_flow_key(key); |
| 227 | else | 227 | else |
| 228 | key->eth.tci = vlan->vlan_tci; | 228 | key->eth.tci = vlan->vlan_tci; |
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 4e9a5f035cbc..54854e3ecd83 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
| @@ -419,7 +419,7 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb, | |||
| 419 | if (!dp_ifindex) | 419 | if (!dp_ifindex) |
| 420 | return -ENODEV; | 420 | return -ENODEV; |
| 421 | 421 | ||
| 422 | if (vlan_tx_tag_present(skb)) { | 422 | if (skb_vlan_tag_present(skb)) { |
| 423 | nskb = skb_clone(skb, GFP_ATOMIC); | 423 | nskb = skb_clone(skb, GFP_ATOMIC); |
| 424 | if (!nskb) | 424 | if (!nskb) |
| 425 | return -ENOMEM; | 425 | return -ENOMEM; |
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c index da2fae0873a5..df334fe43d7f 100644 --- a/net/openvswitch/flow.c +++ b/net/openvswitch/flow.c | |||
| @@ -70,7 +70,7 @@ void ovs_flow_stats_update(struct sw_flow *flow, __be16 tcp_flags, | |||
| 70 | { | 70 | { |
| 71 | struct flow_stats *stats; | 71 | struct flow_stats *stats; |
| 72 | int node = numa_node_id(); | 72 | int node = numa_node_id(); |
| 73 | int len = skb->len + (vlan_tx_tag_present(skb) ? VLAN_HLEN : 0); | 73 | int len = skb->len + (skb_vlan_tag_present(skb) ? VLAN_HLEN : 0); |
| 74 | 74 | ||
| 75 | stats = rcu_dereference(flow->stats[node]); | 75 | stats = rcu_dereference(flow->stats[node]); |
| 76 | 76 | ||
| @@ -472,7 +472,7 @@ static int key_extract(struct sk_buff *skb, struct sw_flow_key *key) | |||
| 472 | */ | 472 | */ |
| 473 | 473 | ||
| 474 | key->eth.tci = 0; | 474 | key->eth.tci = 0; |
| 475 | if (vlan_tx_tag_present(skb)) | 475 | if (skb_vlan_tag_present(skb)) |
| 476 | key->eth.tci = htons(skb->vlan_tci); | 476 | key->eth.tci = htons(skb->vlan_tci); |
| 477 | else if (eth->h_proto == htons(ETH_P_8021Q)) | 477 | else if (eth->h_proto == htons(ETH_P_8021Q)) |
| 478 | if (unlikely(parse_vlan(skb, key))) | 478 | if (unlikely(parse_vlan(skb, key))) |
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c index d4168c442db5..e9aedb7c7106 100644 --- a/net/openvswitch/vport-gre.c +++ b/net/openvswitch/vport-gre.c | |||
| @@ -166,7 +166,7 @@ static int gre_tnl_send(struct vport *vport, struct sk_buff *skb) | |||
| 166 | 166 | ||
| 167 | min_headroom = LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len | 167 | min_headroom = LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len |
| 168 | + tunnel_hlen + sizeof(struct iphdr) | 168 | + tunnel_hlen + sizeof(struct iphdr) |
| 169 | + (vlan_tx_tag_present(skb) ? VLAN_HLEN : 0); | 169 | + (skb_vlan_tag_present(skb) ? VLAN_HLEN : 0); |
| 170 | if (skb_headroom(skb) < min_headroom || skb_header_cloned(skb)) { | 170 | if (skb_headroom(skb) < min_headroom || skb_header_cloned(skb)) { |
| 171 | int head_delta = SKB_DATA_ALIGN(min_headroom - | 171 | int head_delta = SKB_DATA_ALIGN(min_headroom - |
| 172 | skb_headroom(skb) + | 172 | skb_headroom(skb) + |
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index 2034c6d9cb5a..464739aac0f3 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c | |||
| @@ -480,7 +480,8 @@ void ovs_vport_receive(struct vport *vport, struct sk_buff *skb, | |||
| 480 | stats = this_cpu_ptr(vport->percpu_stats); | 480 | stats = this_cpu_ptr(vport->percpu_stats); |
| 481 | u64_stats_update_begin(&stats->syncp); | 481 | u64_stats_update_begin(&stats->syncp); |
| 482 | stats->rx_packets++; | 482 | stats->rx_packets++; |
| 483 | stats->rx_bytes += skb->len + (vlan_tx_tag_present(skb) ? VLAN_HLEN : 0); | 483 | stats->rx_bytes += skb->len + |
| 484 | (skb_vlan_tag_present(skb) ? VLAN_HLEN : 0); | ||
| 484 | u64_stats_update_end(&stats->syncp); | 485 | u64_stats_update_end(&stats->syncp); |
| 485 | 486 | ||
| 486 | OVS_CB(skb)->input_vport = vport; | 487 | OVS_CB(skb)->input_vport = vport; |
