From: Wei Zhao Date: Fri, 16 Jun 2017 05:04:24 +0000 (+0800) Subject: net/igb: fix flex filter length X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d68e62c67b5fc96aecaf969de2edc9946461975d;p=dpdk.git 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 --- 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