]> git.itanic.dy.fi Git - linux-stable/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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Apr 2024 15:20:54 +0000 (08:20 -0700)
commit6e159fd653d7ebf6290358e0330a0cb8a75cf73b
tree81a33a40eddc2e0ab4c0af9d94f3720a4af6fe61
parent475747a19316b08e856c666a20503e73d7ed67ed
ethernet: Add helper for assigning packet type when dest address does not match device address

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>
include/linux/etherdevice.h
net/ethernet/eth.c