commit f461bb6ac7b62ba79a9ab3684356ec87cbd0aa7a
Author: Sepherosa Ziehau <[email protected]>
Date: Tue Nov 20 21:13:18 2018 +0800
inet: Recalculate the packet hash for IP encapsulation.
Some NICs, noticeably igb(4) and ix(4), calculate the packet hash
based on the encapsulated IP datagram instead of the outmost header.
Force packet hash recalculation using the outmost for encapsulated
packets; this is done on the encap_input() path, which leaves enough
room for us to utilize the NIC feature mentioned above.
Reported-by: dillon@
Summary of changes:
sys/netinet/ip_encap.c | 19 ++++++++++++++
sys/netinet/ip_input.c | 67 ++++++++++++++++++++++++++++++++------------------
sys/netinet/ip_var.h | 7 ++++--
3 files changed, 67 insertions(+), 26 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f461bb6ac7b62ba79a9ab3684356ec87cbd0aa7a
--
DragonFly BSD source repository