diff mbox

[ovs-dev,v4,2/2] netdev-dpdk: Log Rx checksum offload not supported.

Message ID 1497009108-9052-3-git-send-email-ktraynor@redhat.com
State Superseded
Headers show

Commit Message

Kevin Traynor June 9, 2017, 11:51 a.m. UTC
Rx checksum offload is enabled by default on DPDK NICs where
supported. Previously Rx checksum offload not supported was
logged on first configure only. The DPDK port may be configured
multiple times so log on each configure.

Suggested-by: Darrell Ball <dlu998@gmail.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
 lib/netdev-dpdk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Darrell Ball June 9, 2017, 4:06 p.m. UTC | #1
On 6/9/17, 4:51 AM, "Kevin Traynor" <ktraynor@redhat.com> wrote:

    Rx checksum offload is enabled by default on DPDK NICs where
    supported. Previously Rx checksum offload not supported was
    logged on first configure only. The DPDK port may be configured
    multiple times so log on each configure.

I was thinking about allowing reporting for multiple devices, not the same device
multiple times.  Can you update the commit message ?

    
    Suggested-by: Darrell Ball <dlu998@gmail.com>
    Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
    ---
     lib/netdev-dpdk.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
    index 5c05e79..ecfddb8 100644
    --- a/lib/netdev-dpdk.c
    +++ b/lib/netdev-dpdk.c
    @@ -744,5 +744,5 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev)
         if ((info.rx_offload_capa & rx_chksm_offload_capa) !=
                 rx_chksm_offload_capa) {
    -        VLOG_WARN_ONCE("Rx checksum offload is not supported on device %"PRIu8,
    +        VLOG_WARN("Rx checksum offload is not supported on port %"PRIu8,
                             dev->port_id);
             dev->hw_ol_features &= ~NETDEV_RX_CHECKSUM_OFFLOAD;
    -- 
    1.8.3.1
Kevin Traynor June 9, 2017, 4:23 p.m. UTC | #2
On 06/09/2017 05:06 PM, Darrell Ball wrote:
> 
> 
> On 6/9/17, 4:51 AM, "Kevin Traynor" <ktraynor@redhat.com> wrote:
> 
>     Rx checksum offload is enabled by default on DPDK NICs where
>     supported. Previously Rx checksum offload not supported was
>     logged on first configure only. The DPDK port may be configured
>     multiple times so log on each configure.
> 
> I was thinking about allowing reporting for multiple devices, not the same device
> multiple times.  Can you update the commit message ?
> 

Ah, right, good catch thanks. I guess I made the right fix for the wrong
reason :-) v5 with updated commit message on the way

>     
>     Suggested-by: Darrell Ball <dlu998@gmail.com>
>     Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
>     ---
>      lib/netdev-dpdk.c | 2 +-
>      1 file changed, 1 insertion(+), 1 deletion(-)
>     
>     diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
>     index 5c05e79..ecfddb8 100644
>     --- a/lib/netdev-dpdk.c
>     +++ b/lib/netdev-dpdk.c
>     @@ -744,5 +744,5 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev)
>          if ((info.rx_offload_capa & rx_chksm_offload_capa) !=
>                  rx_chksm_offload_capa) {
>     -        VLOG_WARN_ONCE("Rx checksum offload is not supported on device %"PRIu8,
>     +        VLOG_WARN("Rx checksum offload is not supported on port %"PRIu8,
>                              dev->port_id);
>              dev->hw_ol_features &= ~NETDEV_RX_CHECKSUM_OFFLOAD;
>     -- 
>     1.8.3.1
>     
>     
>
diff mbox

Patch

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 5c05e79..ecfddb8 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -744,5 +744,5 @@  dpdk_eth_dev_init(struct netdev_dpdk *dev)
     if ((info.rx_offload_capa & rx_chksm_offload_capa) !=
             rx_chksm_offload_capa) {
-        VLOG_WARN_ONCE("Rx checksum offload is not supported on device %"PRIu8,
+        VLOG_WARN("Rx checksum offload is not supported on port %"PRIu8,
                         dev->port_id);
         dev->hw_ol_features &= ~NETDEV_RX_CHECKSUM_OFFLOAD;