diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-24 22:36:32 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-24 22:36:32 +0000 |
commit | 4d65dd520db41245b762b0de747afe1abcd5fd29 (patch) | |
tree | f062c090dcba78ab1f2d72c1d329a24aa1cd8505 /sys | |
parent | ca98724d303a2d2852e5afc6ca4f8df91ce7c4f1 (diff) |
set IFQ_SET_MAXLEN to the number of slots on the tx ring, not 1.
this effectively enables tx mitigation on this chip. hrvoje popovski
tested it and discovered it adds about 20% to forwarding performance
on his test machine, and brings it more in line with ix(4) performance.
jmatthew thinks i copied setting it to 1 from myx, but myx resets
it to a proper value later on when it figures out what the chip is
capable of. how embarrassment.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_ixl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c index bdbfd69ed1e..40f6c40e1b6 100644 --- a/sys/dev/pci/if_ixl.c +++ b/sys/dev/pci/if_ixl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ixl.c,v 1.50 2020/06/24 11:17:21 dlg Exp $ */ +/* $OpenBSD: if_ixl.c,v 1.51 2020/06/24 22:36:31 dlg Exp $ */ /* * Copyright (c) 2013-2015, Intel Corporation @@ -1629,7 +1629,7 @@ ixl_attach(struct device *parent, struct device *self, void *aux) ifp->if_watchdog = ixl_watchdog; ifp->if_hardmtu = IXL_HARDMTU; strlcpy(ifp->if_xname, DEVNAME(sc), IFNAMSIZ); - IFQ_SET_MAXLEN(&ifp->if_snd, 1); + IFQ_SET_MAXLEN(&ifp->if_snd, sc->sc_tx_ring_ndescs); ifp->if_capabilities = IFCAP_VLAN_MTU; #if 0 |