[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150922.160644.138485112664023430.davem@davemloft.net>
Date: Tue, 22 Sep 2015 16:06:44 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: ariel.elior@...gic.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] bnx2x: add ethtool support to read and change
RSS key
From: David Miller <davem@...emloft.net>
Date: Tue, 22 Sep 2015 14:59:35 -0700 (PDT)
> From: Eric Dumazet <eric.dumazet@...il.com>
> Date: Fri, 18 Sep 2015 15:21:52 -0700
>
>> From: Eric Dumazet <edumazet@...gle.com>
>>
>> While trying to understand why bnx2x RSS hash was not matching
>> Toeplitz specifications, I implemented driver code to support
>> ethtool -x|-X to try various RSS key combinations easily.
>>
>> Then, after some debugging, I understood bnx2x was reading the rss_key
>> in reverse order.
>>
>> If we want consistent Toeplitz hashes with different NIC, we need
>> to byte swap user key.
>>
>> Tested:
> ...
>> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
>
> Applied, thanks Eric.
Reverting, this doesn't compile:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c: In function ‘bnx2x_vfpf_config_rss’:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c:814:29: error: ‘struct bnx2x_config_rss_params’ has no member named ‘rss_key’
memcpy(req->rss_key, params->rss_key, sizeof(params->rss_key));
^
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c:814:53: error: ‘struct bnx2x_config_rss_params’ has no member named ‘rss_key’
memcpy(req->rss_key, params->rss_key, sizeof(params->rss_key));
^
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c: In function ‘bnx2x_vf_mbx_update_rss’:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c:1988:12: error: ‘struct bnx2x_config_rss_params’ has no member named ‘rss_key’
memcpy(rss.rss_key, rss_tlv->rss_key, sizeof(rss_tlv->rss_key));
^
Powered by blists - more mailing lists