Rename rss_soft_m2cpuid() -> rss_soft_m2cpuid_v4() in preparation for
an IPv6 version to show up. Submitted by: Tiwei Bie <btw@mail.ustc.edu.cn> Differential Revision: https://reviews.freebsd.org/D3504
This commit is contained in:
parent
8227eba352
commit
4672b4c15b
@ -332,7 +332,7 @@ rss_mbuf_software_hash_v4(const struct mbuf *m, int dir, uint32_t *hashval,
|
||||
* XXX TODO: definitely want statistics here!
|
||||
*/
|
||||
struct mbuf *
|
||||
rss_soft_m2cpuid(struct mbuf *m, uintptr_t source, u_int *cpuid)
|
||||
rss_soft_m2cpuid_v4(struct mbuf *m, uintptr_t source, u_int *cpuid)
|
||||
{
|
||||
uint32_t hash_val, hash_type;
|
||||
int ret;
|
||||
|
@ -51,7 +51,7 @@ int rss_proto_software_hash_v4(struct in_addr src,
|
||||
struct in_addr dst, u_short src_port, u_short dst_port,
|
||||
int proto, uint32_t *hashval,
|
||||
uint32_t *hashtype);
|
||||
struct mbuf * rss_soft_m2cpuid(struct mbuf *m, uintptr_t source,
|
||||
struct mbuf * rss_soft_m2cpuid_v4(struct mbuf *m, uintptr_t source,
|
||||
u_int *cpuid);
|
||||
|
||||
#endif /* !_NETINET_IN_RSS_H_ */
|
||||
|
@ -140,7 +140,7 @@ static struct netisr_handler ip_nh = {
|
||||
.nh_handler = ip_input,
|
||||
.nh_proto = NETISR_IP,
|
||||
#ifdef RSS
|
||||
.nh_m2cpuid = rss_soft_m2cpuid,
|
||||
.nh_m2cpuid = rss_soft_m2cpuid_v4,
|
||||
.nh_policy = NETISR_POLICY_CPU,
|
||||
.nh_dispatch = NETISR_DISPATCH_HYBRID,
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user