Skip to content

Instantly share code, notes, and snippets.

@seanbruno
Created August 9, 2017 21:51
Show Gist options
  • Save seanbruno/d094907ac8b947191d540f230cbfb393 to your computer and use it in GitHub Desktop.
Save seanbruno/d094907ac8b947191d540f230cbfb393 to your computer and use it in GitHub Desktop.
Index: iflib.c
===================================================================
--- iflib.c (revision 321883)
+++ iflib.c (working copy)
@@ -2528,6 +2528,7 @@
/* will advance the cidx on the corresponding free lists */
m = iflib_rxd_pkt_get(rxq, &ri);
+MPASS(m->m_pkthdr.len <= ifp->if_mtu);
if (avail == 0 && budget_left)
avail = iflib_rxd_avail(ctx, rxq, *cidxp, budget_left);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment