X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fdatapath.c;h=d64fc32b3a2321235629d7c99c5b89b5eebdd2e0;hb=8a07709cb80462edb32fc11d056bfc08ce90f62d;hp=23fb1dc83b6727944ace1bb476f019e624b4b09a;hpb=95b1d73a4a6944a44c028b771a339d2971d93071;p=sliver-openvswitch.git diff --git a/datapath/datapath.c b/datapath/datapath.c index 23fb1dc83..d64fc32b3 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1729,6 +1729,9 @@ static struct vport *lookup_vport(struct net *net, vport = ovs_vport_locate(net, nla_data(a[OVS_VPORT_ATTR_NAME])); if (!vport) return ERR_PTR(-ENODEV); + if (ovs_header->dp_ifindex && + ovs_header->dp_ifindex != get_dpifindex(vport->dp)) + return ERR_PTR(-ENODEV); return vport; } else if (a[OVS_VPORT_ATTR_PORT_NO]) { u32 port_no = nla_get_u32(a[OVS_VPORT_ATTR_PORT_NO]); @@ -2161,7 +2164,7 @@ static int __init dp_init(void) BUILD_BUG_ON(sizeof(struct ovs_skb_cb) > sizeof(dummy_skb->cb)); pr_info("Open vSwitch switching datapath %s, built "__DATE__" "__TIME__"\n", - VERSION BUILDNR); + VERSION); err = genl_exec_init(); if (err)