diff options
| author | msaitoh <msaitoh@NetBSD.org> | 2021-12-14 05:26:08 +0000 |
|---|---|---|
| committer | msaitoh <msaitoh@NetBSD.org> | 2021-12-14 05:26:08 +0000 |
| commit | 766beb71b8bbada076bf0a84056e01d7d79ba897 (patch) | |
| tree | 3c4d361886be8479031cf2e812663823d3b84789 /sys/dev | |
| parent | f6645365e973233255629fc9e22f5673ba0d7d13 (diff) | |
Add IPv6 mask for flow director.
- FreeBSD: c4f73d5d6a6c0117e08a03920cce69202865ba13 or ix-3.3.18
DPDK: 21feefa2fcd5899ee26a10be405c17c0a1109860
Write FDIRIP6M register to allow flow director filter
to set ipv6 rules without setting ipv6 source/destination address.
- No functional change because NetBSD doesn't support flow director.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/ixgbe/ixgbe_82599.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/ixgbe/ixgbe_82599.c b/sys/dev/pci/ixgbe/ixgbe_82599.c index 751dfc9b6df..715442bedd9 100644 --- a/sys/dev/pci/ixgbe/ixgbe_82599.c +++ b/sys/dev/pci/ixgbe/ixgbe_82599.c @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe_82599.c,v 1.26 2021/12/10 11:31:22 msaitoh Exp $ */ +/* $NetBSD: ixgbe_82599.c,v 1.27 2021/12/14 05:26:08 msaitoh Exp $ */ /****************************************************************************** SPDX-License-Identifier: BSD-3-Clause @@ -36,7 +36,7 @@ /*$FreeBSD: head/sys/dev/ixgbe/ixgbe_82599.c 331224 2018-03-19 20:55:05Z erj $*/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ixgbe_82599.c,v 1.26 2021/12/10 11:31:22 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ixgbe_82599.c,v 1.27 2021/12/14 05:26:08 msaitoh Exp $"); #include "ixgbe_type.h" #include "ixgbe_82599.h" @@ -1883,6 +1883,7 @@ s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw, ~input_mask->formatted.src_ip[0]); IXGBE_WRITE_REG_BE32(hw, IXGBE_FDIRDIP4M, ~input_mask->formatted.dst_ip[0]); + IXGBE_WRITE_REG_BE32(hw, IXGBE_FDIRIP6M, 0xFFFFFFFF); } return IXGBE_SUCCESS; } |
