UPSTREAM: net: ip_tunnel: add header_ops for layer 3 devices
Some devices that take straight up layer 3 packets benefit from having a shared header_ops so that AF_PACKET sockets can inject packets that are recognized. This shared infrastructure will be used by other drivers that currently can't inject packets using AF_PACKET. It also exposes the parser function, as it is useful in standalone form too. Signed-off-by:Jason A. Donenfeld <Jason@zx2c4.com> Acked-by:
Willem de Bruijn <willemb@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net> [Jason: no parse_protocol in ip_tunnel_header_ops] (cherry picked from commit 2606aff916854b61234bf85001be9777bab2d5f8) Bug: 152722841 Signed-off-by:
Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ib255de1683387e8adfa5042cf11ea004a06cd78f
Loading
Please register or sign in to comment