Module Name:    src
Committed By:   msaitoh
Date:           Tue Dec 14 05:26:08 UTC 2021

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe_82599.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/pci/ixgbe/ixgbe_82599.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixgbe_82599.c
diff -u src/sys/dev/pci/ixgbe/ixgbe_82599.c:1.26 src/sys/dev/pci/ixgbe/ixgbe_82599.c:1.27
--- src/sys/dev/pci/ixgbe/ixgbe_82599.c:1.26	Fri Dec 10 11:31:22 2021
+++ src/sys/dev/pci/ixgbe/ixgbe_82599.c	Tue Dec 14 05:26:08 2021
@@ -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(stru
 				     ~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;
 }

Reply via email to