From: Jianhua Xie Date: Wed, 19 Nov 2014 08:48:58 +0000 (+0800) Subject: bonding: change AD_LINK_SPEED_BITMASK to enum to suport more speed X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~160^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8dda90c28e2a13a007ef675a25db6a79991630;p=pandora-kernel.git bonding: change AD_LINK_SPEED_BITMASK to enum to suport more speed Port Key was determined as 16 bits according to the link speed, duplex and user key (which is yet not supported). In the old speed field, 5 bits are for speed [1|10|100|1000|10000]Mbps as below: -------------------------------------------------------------- Port key :| User key | Speed | Duplex| -------------------------------------------------------------- 16 6 1 0 This patch keeps the old layout, but changes AD_LINK_SPEED_BITMASK from bit type to an enum type. In this way, the speed field can expand speed type from 5 to 32. CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: David S. Miller Signed-off-by: Jianhua Xie Signed-off-by: David S. Miller --- Reading git-diff-tree failed