diff options
author | Maxim Mikityanskiy <maximmi@mellanox.com> | 2019-02-21 13:39:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-22 21:55:31 +0100 |
commit | e78b2915517e8fcadb1bc130ad6aeac7099e510c (patch) | |
tree | caaedfbe44a6b744f896f81c4d92946ba93716cc /net/ethernet | |
parent | net: Don't set transport offset to invalid value (diff) | |
download | linux-e78b2915517e8fcadb1bc130ad6aeac7099e510c.tar.xz linux-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