git: mxge: Record RX slot count instead of its size

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Oct 22 05:50:08 PDT 2013


commit 089301c240f0aa570def475283b186dbbdd4ffef
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Oct 22 20:45:50 2013 +0800

    mxge: Record RX slot count instead of its size
    
    Original code assumes that the total size of RX slots is same as one RX
    descriptor ring size.  This assumption could easily be broken if we ask
    chip to deliver RSS hash (RX slot size will be changed from 4 bytes to 8
    bytes).  RX slot count is recorded now.

Summary of changes:
 sys/dev/netif/mxge/if_mxge.c     | 23 ++++++++++++++---------
 sys/dev/netif/mxge/if_mxge_var.h |  2 +-
 2 files changed, 15 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/089301c240f0aa570def475283b186dbbdd4ffef


-- 
DragonFly BSD source repository



More information about the Commits mailing list