From: Kumar Sanghvi Date: Wed, 18 Dec 2013 11:08:23 +0000 (+0530) Subject: cxgb4: Add API to correctly calculate tuple fields X-Git-Tag: v3.13-rc7~13^2~18^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcf7b6f5bdeaa13d5e465d8795d2e7d6d1e27b65;p=pandora-kernel.git cxgb4: Add API to correctly calculate tuple fields Adds API cxgb4_select_ntuple so as to enable Upper Level Drivers to correctly calculate the tuple fields. Adds constant definitions for TP_VLAN_PRI_MAP for the Compressed Filter Tuple field widths and structures and uses them. Also, the CPL Parameters field for T5 is 40 bits so we need to prototype cxgb4_select_ntuple() to calculate and return u64 values. Based on original work by Casey Leedom Signed-off-by: Kumar Sanghvi Signed-off-by: Hariprasad Shenai Signed-off-by: David S. Miller --- Reading git-diff-tree failed