#ifndef __NET_NS_HASH_H__ #define __NET_NS_HASH_H__ #include struct net; static inline u32 net_hash_mix(const struct net *net) { #ifdef CONFIG_NET_NS /* * shift this right to eliminate bits, that are * always zeroed */ return (u32)(((unsigned long)net) >> L1_CACHE_SHIFT); #else return 0; #endif } #endif /atom/net/sunrpc?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Belous <pavel.s.belous@gmail.com>2017-01-28 22:53:28 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-30 10:14:28 -0500
commit94842b4fc4d6b1691cfc86c6f5251f299d27f4ba (patch)
tree86aa0260c94f356d8f7ed426cb80060de376abb4 /net/sunrpc
parentd1156b489fa734d1af763d6a07b1637c01bb0aed (diff)
net: ethtool: add support for 2500BaseT and 5000BaseT link modes
This patch introduce support for 2500BaseT and 5000BaseT link modes. These modes are included in the new IEEE 802.3bz standard. Signed-off-by: Pavel Belous <pavel.s.belous@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')