]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ethernet: Add helper for assigning packet type when dest address does not match devic...
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Tue, 23 Apr 2024 18:13:03 +0000 (11:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:46 +0000 (16:32 +0200)
commitca958a1b1552bd6eb24a8f85e290afb1b6099ea1
tree8c8bd1c6336b4554a3f0efdc5dcc9c94d253f2e9
parent3ecf2249e6e43f397a0786a00c1f7ef349655da5
ethernet: Add helper for assigning packet type when dest address does not match device address

commit 6e159fd653d7ebf6290358e0330a0cb8a75cf73b upstream.

Enable reuse of logic in eth_type_trans for determining packet type.

Suggested-by: Sabrina Dubroca <sd@queasysnail.net>
Cc: stable@vger.kernel.org
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/20240423181319.115860-3-rrameshbabu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/etherdevice.h
net/ethernet/eth.c