aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/netmap/netmap.c')
-rw-r--r--sys/dev/netmap/netmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/netmap/netmap.c b/sys/dev/netmap/netmap.c
index 18de5ef205eb..a9ddb5fb5728 100644
--- a/sys/dev/netmap/netmap.c
+++ b/sys/dev/netmap/netmap.c
@@ -2412,7 +2412,7 @@ netmap_compute_buf_len(struct netmap_priv_d *priv)
maxframe = mtu + ETH_HLEN +
ETH_FCS_LEN + VLAN_HLEN;
if (maxframe < target) {
- target = kring->offset_gap;
+ target = maxframe;
}
}