1*76404edcSAsim Jamshed #ifndef _RSS_H_ 2*76404edcSAsim Jamshed #define _RSS_H_ 3*76404edcSAsim Jamshed 4*76404edcSAsim Jamshed #include <netinet/in.h> 5*76404edcSAsim Jamshed 6*76404edcSAsim Jamshed /* return RSS hash value (32 bit) based on 4 tuple values */ 7*76404edcSAsim Jamshed uint32_t GetRSSHash(in_addr_t sip, in_addr_t dip, 8*76404edcSAsim Jamshed in_port_t sp, in_port_t dp); 9*76404edcSAsim Jamshed 10*76404edcSAsim Jamshed /* sip, dip, sp, dp: host-byte order */ 11*76404edcSAsim Jamshed int GetRSSCPUCore(in_addr_t sip, in_addr_t dip, 12*76404edcSAsim Jamshed in_port_t sp, in_port_t dp, int num_cpus); 13*76404edcSAsim Jamshed #endif 14