summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
Commit message (Collapse)AuthorAgeFilesLines
* ralink: drop old ethernet driverJohn Crispin2015-12-171-529/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47899
* ramips: Fix setting of rx buffer lengthJohn Crispin2015-10-051-1/+2
| | | | | | | | | | | | | | The length of the DMA rx buffer was always set to 0 because the function for extracting the length was used to calculate the value for setting it. Instead the macro has to be split in a get and set function similar to the TX_DMA_(GET_|)PLEN(0|1) macro. No problem was noticed on MT7621a before this was changed and thus maybe it was hidden by different problem which is not yet fixed. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 47115
* ramips: collect rx related members to fe_rx_ring structFelix Fietkau2015-07-101-6/+12
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 46295
* ramips: add xmit_more supportFelix Fietkau2015-07-101-0/+2
| | | | | | | | | | | | | | | use pktgen to verify on rt3662. can improve transmit rate. pkt_size 1500 burst 1 : 807Mb/sec burst 8 : 984Mb/sec pkt_size 60 burst 1 : 57Mb/sec burst 8 : 236Mb/sec Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 46294
* ramips: improve tx clean up and add fe_tx_ring structFelix Fietkau2015-06-051-5/+10
| | | | | | | | | | if there is any new tx need to clean up. do it in next napi poll. collect tx related members to fe_tx_ring struct. for better cache usage and more readable. Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 45895
* ramips: make ethernet register map u16 instead of u32Felix Fietkau2015-03-221-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44940
* ralink: support change tx/rx ring sizeJohn Crispin2015-03-131-4/+2
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44741
* ralink: use random generate mac address instead of default one.John Crispin2015-03-131-1/+0
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44740
* ralink: fix hw status almost full not work on mt7620 and mt7621John Crispin2015-02-091-0/+2
| | | | | | | | | | | | | | the old FE_INT_STATUS register becomes two registers. FE_INT_STATUS and INT_STATUS. so the hw status almost full must change to read from FE_INT_STATUS register. tx/rx done read from INT_STATUS register. mt7620 datasheet define CNT_GDM1_AF at BIT(29). but after test it should be BIT(13). why? Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44371
* ralink: add 3.18 supportJohn Crispin2015-02-091-0/+6
| | | | | | | | keep default as 3.14, mt7621 gic need to be ported to 3.18 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44349
* ralink: fix ethernet feature TSO not workFelix Fietkau2015-01-241-8/+25
| | | | | | | | | | | | | | | | * fix TSO features verify on mt7621 firewrt board * improve tx clean up. no need to access uncached memory. also use TX_DTX register instead of read tx ring DONE bit * mt7621 need napi weight 64 to get more performance * remove netif_receive_skb, after kernel version 3.7 tcp4_gro_receive can handle tcp checksum. on rt2880 use iperf tcp LAN to WAN throughput test. with gro 135 Mbits/sec. without gro 80.4Mbits/sec. Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44118
* ralink: init tx/rx vlan offload register for mt7621Felix Fietkau2015-01-241-2/+8
| | | | | | | | | | on mt7621 don't have tx vlan vid registers. so set FE_REG_FE_DMA_VID_BASE to 0. set rx vlan offload register to disable. Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44117
* ralink: improve check rx sg function. use check frags instead of function callFelix Fietkau2015-01-181-1/+0
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44046
* ralink: correct handle hardware rx 2bytes offsetFelix Fietkau2015-01-181-0/+4
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44045
* ralink: use fe_reset to control all resetFelix Fietkau2015-01-181-0/+2
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44044
* ralink: improve tx_timeout functionFelix Fietkau2015-01-181-1/+10
| | | | | | | | | | * use default timeout value * print more debug ring info * move timeout reset function to workqueue Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44043
* ralink: reduce access to uncached tx/rx dma ring bufferFelix Fietkau2015-01-181-2/+2
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44041
* ramips: use a larger number of rx descriptors on mt7621 to work around rx ↵Felix Fietkau2015-01-131-0/+4
| | | | | | | | overrun related packet loss Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43953
* ramips: remove interrupt coalescing, it is unnecessary with napi polling and ↵Felix Fietkau2015-01-131-2/+16
| | | | | | | | could reduce throughput Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43952
* ralink: improve tx vlan offloadJohn Crispin2014-11-191-0/+1
| | | | | | | | | | | hardware tx vlan offload only support max 16 vids now use add/delete vlan interface to update vlan id table when duplicate vlan id index detect. disable hardware tx vlan offload support. Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 43301
* ralink: add support for mt7621 ethernetJohn Crispin2014-11-121-0/+6
| | | | | | | | somehow all switch ports still come up as 10mbit. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43237
* ralink: move ethernet driver to files/John Crispin2014-11-061-0/+448
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43194