Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143231679
D39374.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
774 B
Referenced Files
None
Subscribers
None
D39374.id.diff
View Options
Index: sys/netgraph/ng_eiface.c
===================================================================
--- sys/netgraph/ng_eiface.c
+++ sys/netgraph/ng_eiface.c
@@ -61,6 +61,8 @@
#include <net/ethernet.h>
#include <net/if_arp.h>
+#define NG_EIFACE_QSIZE 4096
+
static const struct ng_cmdlist ng_eiface_cmdlist[] = {
{
NGM_EIFACE_COOKIE,
@@ -411,7 +413,7 @@
ifp->if_output = ether_output;
ifp->if_start = ng_eiface_start;
ifp->if_ioctl = ng_eiface_ioctl;
- ifp->if_snd.ifq_maxlen = ifqmaxlen;
+ ifp->if_snd.ifq_maxlen = (ifqmaxlen > NG_EIFACE_QSIZE) ? ifqmaxlen : NG_EIFACE_QSIZE;
ifp->if_flags = (IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST);
ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_JUMBO_MTU;
ifp->if_capenable = IFCAP_VLAN_MTU | IFCAP_JUMBO_MTU;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 28, 8:17 PM (7 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28068551
Default Alt Text
D39374.id.diff (774 B)
Attached To
Mode
D39374: ng_eiface(4): Increase default TX queue size to 4096 items.
Attached
Detach File
Event Timeline
Log In to Comment