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

Function dsw_flow_id_hash

dpdk/drivers/event/dsw/dsw_event.c:642–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640
641#define DSW_FLOW_ID_BITS (24)
642static uint16_t
643dsw_flow_id_hash(uint32_t flow_id)
644{
645 uint16_t hash = 0;
646 uint16_t offset = 0;
647
648 do {
649 hash ^= ((flow_id >> offset) & DSW_MAX_FLOWS_MASK);
650 offset += DSW_MAX_FLOWS_BITS;
651 } while (offset < DSW_FLOW_ID_BITS);
652
653 return hash;
654}
655
656static void
657dsw_port_buffer_parallel(struct dsw_evdev *dsw, struct dsw_port *source_port,

Calls

no outgoing calls

Tested by

no test coverage detected