svn commit: r359310 - stable/11/sys/dev/netmap

Vincenzo Maffione vmaffione at FreeBSD.org
Wed Mar 25 23:15:32 UTC 2020


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 at 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 */


More information about the svn-src-all mailing list