net: skb_mpls_push() modified to allow MPLS header push at start of packet.
authorMartin Varghese <martin.varghese@nokia.com>
Sat, 21 Dec 2019 03:20:01 +0000 (08:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Dec 2019 06:24:45 +0000 (22:24 -0800)
commite7dbfed1adb0e9123f582293e79760dc52b00d74
tree67d84749009ff65149f7479c39e00417e78bfa6b
parentac80010fc94eb0680d9a432b639583bd7ac29066
net: skb_mpls_push() modified to allow MPLS header push at start of packet.

The existing skb_mpls_push() implementation always inserts mpls header
after the mac header. L2 VPN use cases requires MPLS header to be
inserted before the ethernet header as the ethernet packet gets tunnelled
inside MPLS header in those cases.

Signed-off-by: Martin Varghese <martin.varghese@nokia.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c