Re: [PATCH net] cxgb4: Fix MC1 memory offset calculation

2015-04-29 Thread David Miller
From: Hariprasad Shenai Date: Wed, 29 Apr 2015 17:19:05 +0530 > Commit 6559a7e8296002b4 ("cxgb4: Cleanup macros so they follow the same > style and look consistent") introduced a regression where reading MC1 > memory in adapters where MC0 isn't present or MC0 size is not equal to MC1 > size cause

[PATCH net] cxgb4: Fix MC1 memory offset calculation

2015-04-28 Thread Hariprasad Shenai
Commit 6559a7e8296002b4 ("cxgb4: Cleanup macros so they follow the same style and look consistent") introduced a regression where reading MC1 memory in adapters where MC0 isn't present or MC0 size is not equal to MC1 size caused the adapter to crash due to incorrect computation of memoffset. Fix is