summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
diff options
context:
space:
mode:
authorMartin Varghese <martin.varghese@nokia.com>2019-12-05 05:57:22 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-18 16:05:56 +0100
commit280cec44a6421211a9bc463bd9e624d1b7a40dcf (patch)
tree18597b57f285d4b99f35815d72dfa178a021826d /drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
parent9d59e754900556dc5dd834302d3c77bf5d391eda (diff)
downloadlinux-stable-280cec44a6421211a9bc463bd9e624d1b7a40dcf.tar.gz
linux-stable-280cec44a6421211a9bc463bd9e624d1b7a40dcf.tar.bz2
linux-stable-280cec44a6421211a9bc463bd9e624d1b7a40dcf.zip
net: Fixed updating of ethertype in skb_mpls_push()
[ Upstream commit d04ac224b1688f005a84f764cfe29844f8e9da08 ] The skb_mpls_push was not updating ethertype of an ethernet packet if the packet was originally received from a non ARPHRD_ETHER device. In the below OVS data path flow, since the device corresponding to port 7 is an l3 device (ARPHRD_NONE) the skb_mpls_push function does not update the ethertype of the packet even though the previous push_eth action had added an ethernet header to the packet. recirc_id(0),in_port(7),eth_type(0x0800),ipv4(tos=0/0xfc,ttl=64,frag=no), actions:push_eth(src=00:00:00:00:00:00,dst=00:00:00:00:00:00), push_mpls(label=13,tc=0,ttl=64,bos=1,eth_type=0x8847),4 Fixes: 8822e270d697 ("net: core: move push MPLS functionality from OvS to core helper") Signed-off-by: Martin Varghese <martin.varghese@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_stats.c')
0 files changed, 0 insertions, 0 deletions