diff options
author | Zhengchao Shao <[email protected]> | 2023-12-02 21:06:58 +0800 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-12-05 13:41:48 +0100 |
commit | cb297cc5e194a2ea3cb8aaf722005286ee42b011 (patch) | |
tree | 7a5ab32609cb8249cadd12e6ef82f8679dab19d2 /drivers/net/ipvlan/ipvlan_main.c | |
parent | 76ca21676533736323f08367660ef9f816d60a13 (diff) |
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 'drivers/net/ipvlan/ipvlan_main.c')
0 files changed, 0 insertions, 0 deletions