X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fvport-internal_dev.c;h=003e8800a1c948afa9bf8bda11f02a574052e8cb;hb=7fa0f73fb284b4406bcd085ee62552891b3fa6cd;hp=9e2e7888539c5cba7214c0122fc47c9404c1bbff;hpb=5ca1ba484bd9ade5116a49cf241cb98219d7d696;p=sliver-openvswitch.git diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index 9e2e78885..003e8800a 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -92,7 +92,6 @@ static int internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) } vlan_copy_skb_tci(skb); - OVS_CB(skb)->flow = NULL; rcu_read_lock(); ovs_vport_receive(internal_dev_priv(netdev)->vport, skb); @@ -115,7 +114,7 @@ static int internal_dev_stop(struct net_device *netdev) static void internal_dev_getinfo(struct net_device *netdev, struct ethtool_drvinfo *info) { - strcpy(info->driver, "openvswitch"); + strlcpy(info->driver, "openvswitch", sizeof(info->driver)); } static const struct ethtool_ops internal_dev_ethtool_ops = { @@ -289,12 +288,10 @@ static int internal_dev_recv(struct vport *vport, struct sk_buff *skb) const struct vport_ops ovs_internal_vport_ops = { .type = OVS_VPORT_TYPE_INTERNAL, - .flags = VPORT_F_REQUIRED | VPORT_F_FLOW, + .flags = VPORT_F_REQUIRED, .create = internal_dev_create, .destroy = internal_dev_destroy, - .set_addr = ovs_netdev_set_addr, .get_name = ovs_netdev_get_name, - .get_addr = ovs_netdev_get_addr, .get_ifindex = ovs_netdev_get_ifindex, .send = internal_dev_recv, };