]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: Introduce parse_protocol header_ops callback
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Thu, 21 Feb 2019 12:39:58 +0000 (12:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 20:55:31 +0000 (12:55 -0800)
commite78b2915517e8fcadb1bc130ad6aeac7099e510c
treecaaedfbe44a6b744f896f81c4d92946ba93716cc
parentd2aa125d629080c4f3e31f23b7f612ef6b8492ac
net: Introduce parse_protocol header_ops callback

Introduce a new optional header_ops callback called parse_protocol and a
wrapper function dev_parse_header_protocol, similar to dev_parse_header.

The new callback's purpose is to extract the protocol number from the L2
header, the format of which is known to the driver, but not to the upper
layers of the stack.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h