Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Mar 2020 23:06:04 +0000 (UTC)
From:      Vincenzo Maffione <vmaffione@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r359310 - stable/11/sys/dev/netmap
Message-ID:  <202003252306.02PN64qO045264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vmaffione
Date: Wed Mar 25 23:06:04 2020
New Revision: 359310
URL: https://svnweb.freebsd.org/changeset/base/359310

Log:
  netmap: ixl: add CRC to outbound frames
  
  With this change, ixl netmap_txsync instructs the NIC to add
  CRC to transmitted frames.
  
  Submitted by:	Alexandre Snarskii <snar@snar.spb.ru>
  Reviewed by:	vmaffione

Modified:
  stable/11/sys/dev/netmap/if_ixl_netmap.h

Modified: stable/11/sys/dev/netmap/if_ixl_netmap.h
==============================================================================
--- stable/11/sys/dev/netmap/if_ixl_netmap.h	Wed Mar 25 20:20:08 2020	(r359309)
+++ stable/11/sys/dev/netmap/if_ixl_netmap.h	Wed Mar 25 23:06:04 2020	(r359310)
@@ -239,7 +239,8 @@ ixl_netmap_txsync(struct netmap_kring *kring, int flag
 			curr->cmd_type_offset_bsz = htole64(
 			    ((u64)len << I40E_TXD_QW1_TX_BUF_SZ_SHIFT) |
 			    flags |
-			    ((u64)I40E_TX_DESC_CMD_EOP << I40E_TXD_QW1_CMD_SHIFT)
+			    ((u64)I40E_TX_DESC_CMD_EOP << I40E_TXD_QW1_CMD_SHIFT) |
+			    ((u64)I40E_TX_DESC_CMD_ICRC << I40E_TXD_QW1_CMD_SHIFT)
 			  ); // XXX more ?
 
 			/* make sure changes to the buffer are synced */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003252306.02PN64qO045264>