lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 17 Jul 2008 18:21:27 +0200
From:	Patrick McHardy <kaber@...sh.net>
To:	Stephen Hemminger <shemminger@...tta.com>
CC:	David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH 10/13]: net: Implement simple sw TX hashing.

Stephen Hemminger wrote:
> On Thu, 10 Jul 2008 03:57:13 -0700 (PDT)
> David Miller <davem@...emloft.net> wrote:
> 
>> It just xor hashes over IPv4/IPv6 addresses and ports of transport.
>>
>> The only assumption it makes is that skb_network_header() is set
>> correctly.
>>
>> +	switch (ip_proto) {
>> +	case IPPROTO_TCP:
>> +	case IPPROTO_UDP:
>> +	case IPPROTO_DCCP:
>> +	case IPPROTO_ESP:
>> +	case IPPROTO_AH:
>> +	case IPPROTO_SCTP:
>> +	case IPPROTO_UDPLITE:
>> +		hash ^= *ports;
>> +		break;
>> +
>> +	default:
>> +		break;
>> +	}
>> +
>> +	return hash % dev->real_num_tx_queues;
>> +}
> 
> What about VLAN's? and PPPoE?


Actually I think we could just make the number of tx queues of
virtual devices match the lower device and use the unencapsulated
packets for queue selection.

Of course that would require not to perform queue selection
again on the real device. For VLANs, macvlan etc. that don't
do any locking internally that would probably make sense.
Not sure about PPPoE.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ