From: Sriharsha Basavapatna Date: Mon, 16 Feb 2015 02:33:45 +0000 (+0530) Subject: be2net: Refactor wrb_fill_hdr() routine X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~422^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=804abcdbdbb68df5ca8cf7e70366522f02298029;p=pandora-kernel.git be2net: Refactor wrb_fill_hdr() routine The WRB header is setup by wrb_fill_hdr() routine. This routine currently gets some of the WRB params as args and figures out rest of the WRB params by looking at various fields in skb (like gso, checksum, vlan-tag etc). All these params could instead be retrieved from the skb into a structure and passed to this routine. This separates wrb_fill_hdr() to only provide chip-specific code to fill the WRB. This also makes it simple to support chips with different WRB formats. Signed-off-by: Sriharsha Basavapatna Signed-off-by: David S. Miller --- Reading git-diff-tree failed