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

Sean Bruno sbruno at FreeBSD.org
Mon Oct 31 15:46:07 UTC 2016


Author: sbruno
Date: Mon Oct 31 15:46:06 2016
New Revision: 308131
URL: https://svnweb.freebsd.org/changeset/base/308131

Log:
  MFC r308038:
  
    The buffer address is always overwritten in the extended descriptor format,
    we have to refresh it ... always.  This fixes problems reported in NetMap
    with em(4) devices after conversion to extended descriptor format in
    svn r293331.

Modified:
  stable/11/sys/dev/netmap/if_em_netmap.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/netmap/if_em_netmap.h
==============================================================================
--- stable/11/sys/dev/netmap/if_em_netmap.h	Mon Oct 31 15:33:58 2016	(r308130)
+++ stable/11/sys/dev/netmap/if_em_netmap.h	Mon Oct 31 15:46:06 2016	(r308131)
@@ -277,9 +277,9 @@ em_netmap_rxsync(struct netmap_kring *kr
 			if (addr == NETMAP_BUF_BASE(na)) /* bad buf */
 				goto ring_reset;
 
+			curr->read.buffer_addr = htole64(paddr);
 			if (slot->flags & NS_BUF_CHANGED) {
 				/* buffer has changed, reload map */
-				curr->read.buffer_addr = htole64(paddr);
 				netmap_reload_map(na, rxr->rxtag, rxbuf->map, addr);
 				slot->flags &= ~NS_BUF_CHANGED;
 			}


More information about the svn-src-stable mailing list