Commit 939cd1ab authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller

ipvlan: Unmask upper DSCP bits in ipvlan_process_v4_outbound()

Unmask the upper DSCP bits when calling ip_route_output_flow() so that
in the future it could perform the FIB lookup according to the full DSCP
value.
Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarGuillaume Nault <gnault@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a595266
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* Copyright (c) 2014 Mahesh Bandewar <maheshb@google.com> /* Copyright (c) 2014 Mahesh Bandewar <maheshb@google.com>
*/ */
#include <net/inet_dscp.h>
#include "ipvlan.h" #include "ipvlan.h"
static u32 ipvlan_jhash_secret __read_mostly; static u32 ipvlan_jhash_secret __read_mostly;
...@@ -420,7 +422,7 @@ static noinline_for_stack int ipvlan_process_v4_outbound(struct sk_buff *skb) ...@@ -420,7 +422,7 @@ static noinline_for_stack int ipvlan_process_v4_outbound(struct sk_buff *skb)
int err, ret = NET_XMIT_DROP; int err, ret = NET_XMIT_DROP;
struct flowi4 fl4 = { struct flowi4 fl4 = {
.flowi4_oif = dev->ifindex, .flowi4_oif = dev->ifindex,
.flowi4_tos = RT_TOS(ip4h->tos), .flowi4_tos = ip4h->tos & INET_DSCP_MASK,
.flowi4_flags = FLOWI_FLAG_ANYSRC, .flowi4_flags = FLOWI_FLAG_ANYSRC,
.flowi4_mark = skb->mark, .flowi4_mark = skb->mark,
.daddr = ip4h->daddr, .daddr = ip4h->daddr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment