Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1521619
| From | Corentin Labbe <clabbe.montjoie@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/5] net: thunderx: Fix configuration of L3/L4 length checking |
| Date | 2016-11-14 13:40 +0100 |
| Message-ID | <sDoIi-709-15@gated-at.bofh.it> (permalink) |
| References | <sDn9A-5Ty-5@gated-at.bofh.it> <sDo5A-6un-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Nov 14, 2016 at 04:24:44PM +0530, sunil.kovvuri@gmail.com wrote:
> From: Sunil Goutham <sgoutham@cavium.com>
>
> This patch fixes enabling of HW verification of L3/L4 length and
> TCP/UDP checksum which is currently being cleared. Also fixed VLAN
> stripping config which is being cleared when multiqset is enabled.
>
> Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
> ---
> drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c
> index f0e0ca6..3050177 100644
> --- a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c
> +++ b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c
> @@ -538,9 +538,12 @@ static void nicvf_rcv_queue_config(struct nicvf *nic, struct queue_set *qs,
> mbx.rq.cfg = (1ULL << 62) | (RQ_CQ_DROP << 8);
> nicvf_send_msg_to_pf(nic, &mbx);
>
> - nicvf_queue_reg_write(nic, NIC_QSET_RQ_GEN_CFG, 0, 0x00);
> - if (!nic->sqs_mode)
> + if (!nic->sqs_mode && (qidx == 0)) {
> + /* Enable checking L3/L4 length and TCP/UDP checksums */
> + nicvf_queue_reg_write(nic, NIC_QSET_RQ_GEN_CFG, 0,
> + ((1 << 24) | (1 << 23) | (1 << 21)));
Hello
You could use the BIT() macro here
Regards
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] net: thunderx: Miscellaneous fixes sunil.kovvuri@gmail.com - 2016-11-14 12:00 +0100
[PATCH 4/5] net: thunderx: Fix VF driver's interface statistics sunil.kovvuri@gmail.com - 2016-11-14 12:00 +0100
[PATCH 5/5] net: thunderx: Fix memory leak and other issues upon interface toggle sunil.kovvuri@gmail.com - 2016-11-14 12:10 +0100
[PATCH 3/5] net: thunderx: Fix configuration of L3/L4 length checking sunil.kovvuri@gmail.com - 2016-11-14 13:00 +0100
Re: [PATCH 3/5] net: thunderx: Fix configuration of L3/L4 length checking Corentin Labbe <clabbe.montjoie@gmail.com> - 2016-11-14 13:40 +0100
Re: [PATCH 3/5] net: thunderx: Fix configuration of L3/L4 length checking Sunil Kovvuri <sunil.kovvuri@gmail.com> - 2016-11-14 18:30 +0100
Re: [PATCH 0/5] net: thunderx: Miscellaneous fixes Matthias Brugger <mbrugger@suse.com> - 2016-11-14 13:10 +0100
Re: [PATCH 0/5] net: thunderx: Miscellaneous fixes Sunil Kovvuri <sunil.kovvuri@gmail.com> - 2016-11-14 18:30 +0100
Re: [PATCH 0/5] net: thunderx: Miscellaneous fixes David Miller <davem@davemloft.net> - 2016-11-14 18:40 +0100
Re: [PATCH 0/5] net: thunderx: Miscellaneous fixes Matthias Brugger <mbrugger@suse.com> - 2016-11-14 18:40 +0100
csiph-web