aboutsummaryrefslogtreecommitdiffstats
path: root/net/ethernet
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maximmi@mellanox.com>2019-02-21 12:39:58 +0000
committerDavid S. Miller <davem@davemloft.net>2019-02-22 12:55:31 -0800
commite78b2915517e8fcadb1bc130ad6aeac7099e510c (patch)
treecaaedfbe44a6b744f896f81c4d92946ba93716cc /net/ethernet
parentnet: Don't set transport offset to invalid value (diff)
downloadlinux-dev-e78b2915517e8fcadb1bc130ad6aeac7099e510c.tar.xz
linux-dev-e78b2915517e8fcadb1bc130ad6aeac7099e510c.zip
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>
Diffstat (limited to 'net/ethernet')
0 files changed, 0 insertions, 0 deletions