From d68e62c67b5fc96aecaf969de2edc9946461975d Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Fri, 16 Jun 2017 13:04:24 +0800 Subject: [PATCH] net/igb: fix flex filter length 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 --- drivers/net/e1000/e1000_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e1000/e1000_ethdev.h b/drivers/net/e1000/e1000_ethdev.h index 9266540fb2..85fd1a029f 100644 --- a/drivers/net/e1000/e1000_ethdev.h +++ b/drivers/net/e1000/e1000_ethdev.h @@ -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 -- 2.20.1