[dpdk-dev] net/e1000: support MAC filters for i210 and i211 chips

Message ID 1495044388-21059-1-git-send-email-markus.theil@tu-ilmenau.de (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Markus Theil May 17, 2017, 6:06 p.m. UTC
i210 and i211 also support unicast MAC filters.
The patch was tested on i210 based hw, for i211
support was looked up in the specs.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
---
 drivers/net/e1000/igb_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Wenzhuo Lu May 18, 2017, 1:23 a.m. UTC | #1
Hi,


> -----Original Message-----
> From: Markus Theil [mailto:markus.theil@tu-ilmenau.de]
> Sent: Thursday, May 18, 2017 2:06 AM
> To: Lu, Wenzhuo
> Cc: dev@dpdk.org; Markus Theil
> Subject: [PATCH] net/e1000: support MAC filters for i210 and i211 chips
> 
> i210 and i211 also support unicast MAC filters.
> The patch was tested on i210 based hw, for i211 support was looked up in
> the specs.
> 
> Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>

Thanks for this patch.
  
Ferruh Yigit May 18, 2017, 10:27 a.m. UTC | #2
On 5/18/2017 2:23 AM, Lu, Wenzhuo wrote:
> Hi,
> 
> 
>> -----Original Message-----
>> From: Markus Theil [mailto:markus.theil@tu-ilmenau.de]
>> Sent: Thursday, May 18, 2017 2:06 AM
>> To: Lu, Wenzhuo
>> Cc: dev@dpdk.org; Markus Theil
>> Subject: [PATCH] net/e1000: support MAC filters for i210 and i211 chips
>>
>> i210 and i211 also support unicast MAC filters.
>> The patch was tested on i210 based hw, for i211 support was looked up in
>> the specs.
>>
>> Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>

Applied to dpdk-next-net/master, thanks.

(patch title updated to net/igb: ..)

> 
> Thanks for this patch.
>
  

Patch

diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c
index e1702d8..43d1f5f 100644
--- a/drivers/net/e1000/igb_ethdev.c
+++ b/drivers/net/e1000/igb_ethdev.c
@@ -3551,7 +3551,8 @@  eth_igb_rss_reta_query(struct rte_eth_dev *dev,
 
 #define MAC_TYPE_FILTER_SUP(type)    do {\
 	if ((type) != e1000_82580 && (type) != e1000_i350 &&\
-		(type) != e1000_82576)\
+		(type) != e1000_82576 && (type) != e1000_i210 &&\
+		(type) != e1000_i211)\
 		return -ENOTSUP;\
 } while (0)