]> git.baikalelectronics.ru Git - 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)
commit7c3bf3a68c2d9ebec79699fc6badbfa23b88eb15
treecaaedfbe44a6b744f896f81c4d92946ba93716cc
parentf95d72ec26bacaac14e634f6fa49fd11385c3fc7
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