aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/gianfar.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-28gianfar: Fix RXICr/TXICr programming for multi-queue modeClaudiu Manoil1-6/+4
The correct behavior is to program the interrupt coalescing regs (RXICr/TXICr) in accordance with the Rx/Tx Q's "rx/txcoalescing" flag. That is, if the coalescing flag is 0 for a given Rx/Tx queue then the corresponding coalescing register should be cleared. This behavior is correctly implemented for the single-queue mode (SQ_SG_MODE), but not for the multi-queue mode (MQ_MG_MODE). This fixes the later case. Signed-off-by: Claudiu Manoil <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-06-05gianfar: Remove superfluous initialisationsJan Ceuleers1-16/+14
Signed-off-by: Jan Ceuleers <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-06-05gianfar: various coding style and whitespace cleanupsJan Ceuleers1-144/+154
Signed-off-by: Jan Ceuleers <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-06-05gianfar: comment cleanupJan Ceuleers1-72/+83
Signed-off-by: Jan Ceuleers <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-06-05gianfar: whitespace cleanup - pointers and multiplicationsJan Ceuleers1-8/+8
Signed-off-by: Jan Ceuleers <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-22gianfar:don't add FCB length to hard_header_lenWu Jiajun-B063781-1/+1
FCB(Frame Control Block) isn't the part of netdev hard header. Add FCB to hard_header_len will make GRO fail at MAC comparision stage. Signed-off-by: Jiajun Wu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-04-21gianfar: add GRO supportWu Jiajun-B063781-6/+7
Replace netif_receive_skb with napi_gro_receive. Signed-off-by: Jiajun Wu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-03-25gianfar: Fix possible overrun and simplify interrupt name field creationJoe Perches1-32/+7
Space allocated for int_name_<foo> is insufficient for maximal device name, expand it. Code to create int_name_<foo> is obscure, simplify it by using sprintf. Found by looking for unnecessary \ line continuations. Signed-off-by: Joe Perches <[email protected]> Tested-by: Paul Gortmaker <[email protected]> Signed-off-by: Paul Gortmaker <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-03-18gianfar: use netif_tx_queue_stopped instead of __netif_subqueue_stoppedPaul Gortmaker1-1/+1
The __netif_subqueue_stopped() just does the following: struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); return netif_tx_queue_stopped(txq); and since we already have the txq in scope, we can just call that directly in this case. Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: Paul Gortmaker <[email protected]>
2012-03-15gianfar: delete orphaned version strings and dead macrosPaul Gortmaker1-3/+0
There were two version strings, and neither one was being used. Also in the same proximity were some unused #define that were left over from the past. Delete them all. Signed-off-by: Paul Gortmaker <[email protected]>
2012-03-15gianfar: Add support for byte queue limits.Paul Gortmaker1-3/+16
Add support for byte queue limits (BQL), based on the similar modifications made to intel/igb/igb_main.c from Eric Dumazet in commit bdbc063129e811264cd6c311d8c2d9b95de01231 "igb: Add support for byte queue limits." A local variable for tx_queue->qindex was introduced in gfar_clean_tx_ring, since it is now used often enough to warrant it, and it cleans up the readability somewhat as well. Signed-off-by: Paul Gortmaker <[email protected]>
2012-01-30drivers/net: fix up stale paths from driver reorgPaul Gortmaker1-1/+1
The reorganization of the driver layout in drivers/net left behind some stale paths in comments and in Kconfig help text. Bring them up to date. No actual change to any code takes place here. Signed-off-by: Paul Gortmaker <[email protected]> CC: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-01-12gianfar: Fix invalid TX frames returned on error queue when time stampingManfred Rudigier1-10/+20
When TX time stamping for PTP messages is enabled on a socket, a time stamp is returned on the socket error queue to the user space application after the frame was transmitted. The transmitted frame is also returned on the error queue so that an application knows to which frame the time stamp belongs. In the current implementation the TxFCB is immediately followed by the frame. Since the eTSEC inserts the TX time stamp 8 bytes after the TxFCB, parts of the frame have been overwritten and an invalid frame was returned on the socket error queue. This patch fixes the described problem by adding additional 16 padding bytes between the TxFCB and the frame for all messages sent from a time stamping enabled socket (other sockets are not affected). Signed-off-by: Manfred Rudigier <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-01-12gianfar: Fix missing sock reference when processing TX time stampsManfred Rudigier1-0/+4
When there is not enough headroom in the skb a private copy will be made. However, the private copy had no reference to the socket and consequently no time stamp could be queued on the socket error queue during the skb_tstamp_tx function. This patch fixes this issue by also stealing the sock reference from the original skb after making the private copy. Signed-off-by: Manfred Rudigier <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-11-29net/ethernet: convert drivers/net/ethernet/* to use module_platform_driver()Axel Lin1-13/+1
This patch converts the drivers in drivers/net/ethernet/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: "David S. Miller" <[email protected]> Cc: Pantelis Antoniou <[email protected]> Cc: Vitaly Bordug <[email protected]> Cc: Wan ZongShun <[email protected]> Cc: Nicolas Pitre <[email protected]> Cc: Giuseppe Cavallaro <[email protected]> Cc: Marc Kleine-Budde <[email protected]> Cc: Jeff Kirsher <[email protected]> Cc: Jiri Pirko <[email protected]> Cc: Daniel Hellstrom <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: Tobias Klauser <[email protected]> Cc: Grant Likely <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: Richard Cochran <[email protected]> Cc: Jonas Bonn <[email protected]> Cc: Sebastian Poehn <[email protected]> Cc: Yoshihiro Shimoda <[email protected]> Cc: Ricardo Ribalda Delgado <[email protected]> Cc: "Michał Mirosław" <[email protected]> Signed-off-by: Axel Lin <[email protected]> Acked-by: Wan ZongShun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-11-16ethernet: Convert MAC_ADDR_LEN uses to ETH_ALENJoe Perches1-6/+6
Reduce the number of #defines, use the normal #define from if_ether.h Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-11-16net: introduce and use netdev_features_t for device features setsMichał Mirosław1-1/+1
v2: add couple missing conversions in drivers split unexporting netdev_fix_features() implemented %pNF convert sock::sk_route_(no?)caps Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-08-30gianfar: convert to SKB paged frag API.Ian Campbell1-5/+5
Signed-off-by: Ian Campbell <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
2011-08-20Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+7
2011-08-17net: remove use of ndo_set_multicast_list in driversJiri Pirko1-1/+1
replace it by ndo_set_rx_mode Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-08-12freescale: Move the Freescale driversJeff Kirsher1-0/+3291
Move the Freescale drivers into drivers/net/ethernet/freescale/ and make the necessary Kconfig and Makefile changes. CC: Sandeep Gopalpet <[email protected]> CC: Andy Fleming <[email protected]> CC: Shlomi Gridish <[email protected]> CC: Li Yang <[email protected]> CC: Pantelis Antoniou <[email protected]> CC: Vitaly Bordug <[email protected]> CC: Dan Malek <[email protected]> CC: Sylvain Munaut <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>