From: Claudiu Manoil Date: Mon, 5 Aug 2013 14:20:10 +0000 (+0300) Subject: gianfar: Cleanup TxFCB insertion on xmit X-Git-Tag: v3.12-rc1~132^2~349 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0cffdcc6fc4f57080b9a443401e8dad5ca77f8;p=pandora-kernel.git gianfar: Cleanup TxFCB insertion on xmit Cleanup gfar_start_xmit()'s fast path by factoring out "redundant" FCB insertion code (repeated gfar_add_fcb() calls and related) and by reducing the number of if() clauses (i.e. if(fcb) checks). Improve maintainability (e.g. there's less code and easier to read) also by introducing do_csum and do_vlan to mark the other 2 Tx TOE functionalities, following the same model as do_tstamp. fcb_len may also be 0 now, to mark that Tx FCB insertion conditions (do_csum, do_vlan, do_tstamp) have not been met. Signed-off-by: Claudiu Manoil Signed-off-by: David S. Miller --- Reading git-diff-tree failed