MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rxd_info_zero

Function rxd_info_zero

freebsd/net/iflib.c:503–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501};
502
503static inline void
504rxd_info_zero(if_rxd_info_t ri)
505{
506 if_rxd_info_pad_t ri_pad;
507 int i;
508
509 ri_pad = (if_rxd_info_pad_t)ri;
510 for (i = 0; i < RXD_LOOP_BOUND; i += 4) {
511 ri_pad->rxd_val[i] = 0;
512 ri_pad->rxd_val[i+1] = 0;
513 ri_pad->rxd_val[i+2] = 0;
514 ri_pad->rxd_val[i+3] = 0;
515 }
516#ifdef __LP64__
517 ri_pad->rxd_val[RXD_INFO_SIZE-1] = 0;
518#endif
519}
520
521/*
522 * Only allow a single packet to take up most 1/nth of the tx ring

Callers 2

iflib_netmap_rxsyncFunction · 0.85
iflib_rxeofFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected