mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
datapath: Kill VPORT_F_TUN_ID vport flag.
VPORT_F_TUN_ID is last remaining flag, once we remove it, flags field from vport-ops can be removed. Since it does not complicate much code, we decided to remove this flag. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
@@ -219,7 +219,6 @@ static int lisp_rcv(struct sock *sk, struct sk_buff *skb)
|
||||
/* Save outer tunnel values */
|
||||
iph = ip_hdr(skb);
|
||||
tnl_tun_key_init(&tun_key, iph, key, OVS_TNL_F_KEY);
|
||||
OVS_CB(skb)->tun_key = &tun_key;
|
||||
|
||||
/* Drop non-IP inner packets */
|
||||
inner_iph = (struct iphdr *)(lisph + 1);
|
||||
@@ -241,7 +240,7 @@ static int lisp_rcv(struct sock *sk, struct sk_buff *skb)
|
||||
ethh->h_source[0] = 0x02;
|
||||
ethh->h_proto = protocol;
|
||||
|
||||
ovs_tnl_rcv(vport_from_priv(lisp_port), skb);
|
||||
ovs_tnl_rcv(vport_from_priv(lisp_port), skb, &tun_key);
|
||||
goto out;
|
||||
|
||||
error:
|
||||
@@ -390,7 +389,6 @@ static const char *lisp_get_name(const struct vport *vport)
|
||||
|
||||
const struct vport_ops ovs_lisp_vport_ops = {
|
||||
.type = OVS_VPORT_TYPE_LISP,
|
||||
.flags = VPORT_F_TUN_ID,
|
||||
.create = lisp_tnl_create,
|
||||
.destroy = lisp_tnl_destroy,
|
||||
.get_name = lisp_get_name,
|
||||
|
||||
Reference in New Issue
Block a user