net/igb: fix flex filter length
authorWei Zhao <wei.zhao1@intel.com>
Fri, 16 Jun 2017 05:04:24 +0000 (13:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000 (15:00 +0200)
igb flex filter supports recognizing any arbitrary pattern within first
128 bytes of the packet.

But the macro E1000_FLEX_FILTERS_MASK_SIZE only covers first 64 bytes.

Fixes: 231d43909a31 ("igb: migrate flex filter to new API")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/e1000/e1000_ethdev.h

index 9266540..85fd1a0 100644 (file)
@@ -82,7 +82,7 @@
 #define E1000_MAX_FLEX_FILTER_DWDS \
        (E1000_MAX_FLEX_FILTER_LEN / sizeof(uint32_t))
 #define E1000_FLEX_FILTERS_MASK_SIZE \
-       (E1000_MAX_FLEX_FILTER_DWDS / 4)
+       (E1000_MAX_FLEX_FILTER_DWDS / 2)
 #define E1000_FHFT_QUEUEING_LEN          0x0000007F
 #define E1000_FHFT_QUEUEING_QUEUE        0x00000700
 #define E1000_FHFT_QUEUEING_PRIO         0x00070000