From: Sreenivasa Honnur Date: Sun, 28 Mar 2010 22:07:34 +0000 (+0000) Subject: vxge: Fix a receive stall due to driver being out of synch with chip. X-Git-Tag: v2.6.35-rc1~473^2~670 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18dec74c16abaa92d663dfef64ee6503e085be89;p=pandora-kernel.git vxge: Fix a receive stall due to driver being out of synch with chip. - Fix a receive stall due to driver being out of synch with chip. In a corner case scenario the adapter's ring controller may return a RxD with transfer code of 0xC, while the host ownership bit is still set to the adapter. The driver needs to assume that this case where (host_ownership == 1 or adapter) and (transfer_code == 0xC) is valid, that is, this RxD has been returned by the receive ring controller but no frame data is associated with the rxd. - Restore the transfer code field of each newly replenished RxD to 0x0. - Code cleanup. Removed usage of magic numbers. Signed-off-by: Sreenivasa Honnur Signed-off-by: Ramkrishna Vepa Signed-off-by: David S. Miller --- Reading git-diff-tree failed