sky2: Factor out code to calculate packet sizes
authorMike McCormack <mikem@ring3k.org>
Fri, 12 Feb 2010 06:58:02 +0000 (06:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2010 00:21:02 +0000 (16:21 -0800)
commit39ef110ba859f44efeb9a88d0e85316cd1bbecda
treef22facb05f5071c9b6611081e04f181a42ab8264
parent44dde56d37787cbad2e867a41fe87d6b0aa37fc8
sky2: Factor out code to calculate packet sizes

Move code to calculate receive threshold and packet size out of
sky2_rx_start() so that is can be called from elsewhere easily.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c