datapath: Remove vport from OVS_CB.
authorJesse Gross <jesse@nicira.com>
Sat, 5 Nov 2011 23:43:34 +0000 (16:43 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 8 Nov 2011 02:24:15 +0000 (18:24 -0800)
Now that most fix function logic (like sFlow) has been moved to
userspace, the vport member of OVS_CB is no longer used by anything,
so drop it.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c
datapath/datapath.h

index 059ef85c488f6d2d6b9b459f45854b65c65dc8da..06d371060cf49401f614d97665d773eadf756b91 100644 (file)
@@ -285,7 +285,6 @@ void dp_process_received_packet(struct vport *p, struct sk_buff *skb)
        int error;
 
        stats = per_cpu_ptr(dp->stats_percpu, smp_processor_id());
-       OVS_CB(skb)->vport = p;
 
        if (!OVS_CB(skb)->flow) {
                struct sw_flow_key key;
@@ -793,10 +792,6 @@ static int ovs_packet_cmd_execute(struct sk_buff *skb, struct genl_info *info)
        if (!dp)
                goto err_unlock;
 
-       if (flow->key.phy.in_port < DP_MAX_PORTS)
-               OVS_CB(packet)->vport = get_vport_protected(dp,
-                                                       flow->key.phy.in_port);
-
        local_bh_disable();
        err = execute_actions(dp, packet);
        local_bh_enable();
index 3d7ee629dc35e20af43e595d1cb90a114852d9c0..c6371ca12fdf5365e0e6729ab5d9e35a9fdc647d 100644 (file)
@@ -83,7 +83,6 @@ struct datapath {
 
 /**
  * struct ovs_skb_cb - OVS data in skb CB
- * @vport: The datapath port on which the skb entered the switch.
  * @flow: The flow associated with this packet.  May be %NULL if no flow.
  * @tun_id: ID of the tunnel that encapsulated this packet.  It is 0 if the
  * @ip_summed: Consistently stores L4 checksumming status across different
@@ -95,7 +94,6 @@ struct datapath {
  * before 2.6.27.
  */
 struct ovs_skb_cb {
-       struct vport            *vport;
        struct sw_flow          *flow;
        __be64                  tun_id;
 #ifdef NEED_CSUM_NORMALIZE