Skip to content

Commit c71ad3d

Browse files
David Aherndavem330
authored andcommitted
net: flow: Remove FLOWI_FLAG_L3MDEV_SRC flag
No longer used Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent afb460f commit c71ad3d

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎drivers/net/vrf.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static netdev_tx_t vrf_process_v6_outbound(struct sk_buff *skb,
165165
.flowlabel = ip6_flowinfo(iph),
166166
.flowi6_mark = skb->mark,
167167
.flowi6_proto = iph->nexthdr,
168-
.flowi6_flags = FLOWI_FLAG_L3MDEV_SRC | FLOWI_FLAG_SKIP_NH_OIF,
168+
.flowi6_flags = FLOWI_FLAG_SKIP_NH_OIF,
169169
};
170170
int ret = NET_XMIT_DROP;
171171
struct dst_entry *dst;
@@ -265,8 +265,7 @@ static netdev_tx_t vrf_process_v4_outbound(struct sk_buff *skb,
265265
.flowi4_oif = vrf_dev->ifindex,
266266
.flowi4_iif = LOOPBACK_IFINDEX,
267267
.flowi4_tos = RT_TOS(ip4h->tos),
268-
.flowi4_flags = FLOWI_FLAG_ANYSRC | FLOWI_FLAG_L3MDEV_SRC |
269-
FLOWI_FLAG_SKIP_NH_OIF,
268+
.flowi4_flags = FLOWI_FLAG_ANYSRC | FLOWI_FLAG_SKIP_NH_OIF,
270269
.daddr = ip4h->daddr,
271270
};
272271
struct net *net = dev_net(vrf_dev);

‎include/net/flow.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ struct flowi_common {
3434
__u8 flowic_flags;
3535
#define FLOWI_FLAG_ANYSRC 0x01
3636
#define FLOWI_FLAG_KNOWN_NH 0x02
37-
#define FLOWI_FLAG_L3MDEV_SRC 0x04
38-
#define FLOWI_FLAG_SKIP_NH_OIF 0x08
37+
#define FLOWI_FLAG_SKIP_NH_OIF 0x04
3938
__u32 flowic_secid;
4039
struct flowi_tunnel flowic_tun_key;
4140
};

0 commit comments

Comments
 (0)