diff mbox

[ovs-dev,7/7] netdev-dpdk: set FDIR config

Message ID 1503469462-22391-8-git-send-email-yliu@fridaylinux.org
State Superseded
Headers show

Commit Message

Yuanhan Liu Aug. 23, 2017, 6:24 a.m. UTC
From: Finn Christensen <fc@napatech.com>

This is necessary to make Intel nic work.

Signed-off-by: Finn Christensen <fc@napatech.com>
Signed-off-by: Yuanhan Liu <yliu@fridaylinux.org>
---
 lib/netdev-dpdk.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Darrell Ball Aug. 29, 2017, 8:25 a.m. UTC | #1
On 8/22/17, 11:24 PM, "Yuanhan Liu" <yliu@fridaylinux.org> wrote:
    
        From: Finn Christensen <fc@napatech.com>
        
        This is necessary to make Intel nic work.

Could we add a comment why this is needed ?
        
        Signed-off-by: Finn Christensen <fc@napatech.com>
        Signed-off-by: Yuanhan Liu <yliu@fridaylinux.org>
        ---
         lib/netdev-dpdk.c | 3 +++
         1 file changed, 3 insertions(+)
        
        diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
        index 8217184..eedf8f3 100644
        --- a/lib/netdev-dpdk.c
        +++ b/lib/netdev-dpdk.c
        @@ -177,6 +177,9 @@ static const struct rte_eth_conf port_conf = {
             .txmode = {
                 .mq_mode = ETH_MQ_TX_NONE,
             },
        +    .fdir_conf = {
        +        .mode = RTE_FDIR_MODE_PERFECT,
        +    },
         };
         
         /*
        -- 
        2.7.4
Yuanhan Liu Aug. 29, 2017, 12:21 p.m. UTC | #2
On Tue, Aug 29, 2017 at 08:25:57AM +0000, Darrell Ball wrote:
> 
>     On 8/22/17, 11:24 PM, "Yuanhan Liu" <yliu@fridaylinux.org> wrote:
>     
>         From: Finn Christensen <fc@napatech.com>
>         
>         This is necessary to make Intel nic work.
> 
> Could we add a comment why this is needed ?

Sure. Will do.

	--yliu
>         
>         Signed-off-by: Finn Christensen <fc@napatech.com>
>         Signed-off-by: Yuanhan Liu <yliu@fridaylinux.org>
>         ---
>          lib/netdev-dpdk.c | 3 +++
>          1 file changed, 3 insertions(+)
>         
>         diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
>         index 8217184..eedf8f3 100644
>         --- a/lib/netdev-dpdk.c
>         +++ b/lib/netdev-dpdk.c
>         @@ -177,6 +177,9 @@ static const struct rte_eth_conf port_conf = {
>              .txmode = {
>                  .mq_mode = ETH_MQ_TX_NONE,
>              },
>         +    .fdir_conf = {
>         +        .mode = RTE_FDIR_MODE_PERFECT,
>         +    },
>          };
>          
>          /*
>         -- 
>         2.7.4
>         
>         
>     
>     
> 
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
diff mbox

Patch

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 8217184..eedf8f3 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -177,6 +177,9 @@  static const struct rte_eth_conf port_conf = {
     .txmode = {
         .mq_mode = ETH_MQ_TX_NONE,
     },
+    .fdir_conf = {
+        .mode = RTE_FDIR_MODE_PERFECT,
+    },
 };
 
 /*