cxgb4vf: Make sge init code more readable
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 1 Mar 2016 11:49:34 +0000 (17:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:46:29 +0000 (14:46 -0500)
commitcb440364c72cbbf3dde084cf65b997b40ecb8efd
tree0a1633d79c62b0db1dcd2b32d096047838fcbd8f
parentedadad80d65bf9c7aa9f2605dbd2eef94ccd47c0
cxgb4vf: Make sge init code more readable

Adds a new function t4vf_fl_pkt_align() and use the same in SGE
initialization code to find out freelist packet alignment

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4vf/sge.c
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c