diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-25 04:25:56 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-25 04:25:56 +0000 |
commit | 75fc76bf12f473542b7f0fcdfc3baeb6082e601c (patch) | |
tree | 450bbdf8c929dd43e01caae2c30a8afa0f540466 /sys/dev/pci/if_iavf.c | |
parent | 69de19b53dddd6ad61f708c81b31846f6658446d (diff) |
bump the ifq maxlen like i just did for ixl(4).
this should enable tx mitigation, and hopefully provide a speed
bump here too.
iavf is a cut up ixl, so it inherited the IFQ_SETMAXLEN 1.
ok jmatthew@
Diffstat (limited to 'sys/dev/pci/if_iavf.c')
-rw-r--r-- | sys/dev/pci/if_iavf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iavf.c b/sys/dev/pci/if_iavf.c index 86b09a955eb..b6ac8aacf64 100644 --- a/sys/dev/pci/if_iavf.c +++ b/sys/dev/pci/if_iavf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iavf.c,v 1.7 2019/09/15 01:57:19 jmatthew Exp $ */ +/* $OpenBSD: if_iavf.c,v 1.8 2020/06/25 04:25:55 dlg Exp $ */ /* * Copyright (c) 2013-2015, Intel Corporation @@ -890,7 +890,7 @@ iavf_attach(struct device *parent, struct device *self, void *aux) if (ifp->if_hardmtu == 0) ifp->if_hardmtu = IAVF_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 | IFCAP_VLAN_HWTAGGING; #if 0 |