diff options
| author | Emil Tantilov <emil.s.tantilov@intel.com> | 2017-12-11 10:36:59 -0800 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-01-26 07:46:50 -0800 |
| commit | 24bff091d7691c162580bcdb57bb00015471d34e (patch) | |
| tree | 8143a7922ede92ae2748d48771e6ea836ebcc01f /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | 68b6ff5825c869c125930924f22e55c6ee126dbb (diff) | |
ixgbevf: use length to determine if descriptor is done
Based on:
commit 7ec0116c9131 ("igb: Use length to determine if descriptor is done")
This change makes it so that we use the length of the packet instead of the
DD status bit to determine if a new descriptor is ready to be processed.
The obvious advantage is that it cuts down on reads as we don't really even
need the DD bit if going from a 0 to a non-zero value on size is enough to
inform us that the packet has been completed.
In addition we only reset the Rx descriptor length for descriptor zero when
resetting a ring instead of having to do a memset with 0 over the entire
ring. By doing this we can save some time on initialization.
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
