| 640 | |
| 641 | #define DSW_FLOW_ID_BITS (24) |
| 642 | static uint16_t |
| 643 | dsw_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 | |
| 656 | static void |
| 657 | dsw_port_buffer_parallel(struct dsw_evdev *dsw, struct dsw_port *source_port, |
no outgoing calls
no test coverage detected