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

Function set_bitmap

lib/ff_dpdk_kni.c:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92struct kni_ratelimit kni_rate_limt = {0, 0, 0};
93
94static void
95set_bitmap(uint16_t port, unsigned char *bitmap)
96{
97 port = htons(port);
98 unsigned char *p = bitmap + port/8;
99 *p = set_bit(*p, port % 8);
100}
101
102static int
103get_bitmap(uint16_t port, unsigned char *bitmap)

Callers 1

kni_set_bitmapFunction · 0.85

Calls 1

set_bitFunction · 0.50

Tested by

no test coverage detected