diff options
| author | Zhengchao Shao <[email protected]> | 2023-12-02 13:06:58 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-12-05 12:41:48 +0000 |
| commit | cb297cc5e194a2ea3cb8aaf722005286ee42b011 (patch) | |
| tree | 7a5ab32609cb8249cadd12e6ef82f8679dab19d2 /tools/net/ynl/generated/devlink-user.c | |
| parent | Merge branch 'conver-net-selftests-to-run-in-unique-namespace-part-1' (diff) | |
| download | kernel-cb297cc5e194a2ea3cb8aaf722005286ee42b011.tar.gz kernel-cb297cc5e194a2ea3cb8aaf722005286ee42b011.zip | |
macvlan: implement .parse_protocol hook function in macvlan_hard_header_ops
The .parse_protocol hook function in the macvlan_header_ops structure is
not implemented. As a result, when the AF_PACKET family is used to send
packets, skb->protocol will be set to 0.
Macvlan is a device of type ARPHRD_ETHER (ether_setup). Therefore, use
eth_header_parse_protocol function to obtain the protocol.
Suggested-by: Eric Dumazet <[email protected]>
Signed-off-by: Zhengchao Shao <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.c')
0 files changed, 0 insertions, 0 deletions
