- 12 6月, 2008 29 次提交
-
-
由 Lennert Buytenhek 提交于
Split all TX queue related state into 'struct tx_queue', in preparation for multiple TX queue support. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Split all RX queue related state into 'struct rx_queue', in preparation for multiple RX queue support. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Replace the 70-line crc8 computation (used for multicast address filtering tables) by a 5-line version. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
The per-port mv643xx_eth_private struct had a private instance of struct net_device_stats that was never ever written to, only read (via the ethtool statistics interface). This patch gets rid of the private instance, and tweaks the ethtool statistics code in mv643xx_eth to use the statistics in struct net_device instead. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Since they are no longer used, kill enum FUNC_RET_STATUS and struct pkt_info (which were a rather roundabout way of communicating RX/TX status within the same driver). Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
rx_return_buff() is also a remnant of the HAL layering that the original mv643xx_eth driver used. Moving it into its caller kills the last reference to FUNC_RET_STATUS/pkt_info. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
The port_receive() function is a remnant of the original mv643xx_eth HAL split. This patch moves port_receive() into its caller, so that the top and the bottom half of RX processing no longer communicate via the HAL FUNC_RET_STATUS/pkt_info mechanism abstraction anymore. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Nuke some Hungarian-esque variable naming conventions: - p_ prefix for pointers - _q suffix for variables dealing with rx/tx queue state Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
The ->rx_resource_err variable doesn't serve a useful purpose -- kill it. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Half of the functions in the mv643xx_eth driver are prefixed by useless and baroque comment blocks on _what_ those functions do (which is obvious from the code itself) rather than why, and there's no point in keeping those comments around. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
A bunch of places in the mv643xx_eth driver use the 'mv643xx_' prefix. Since the mv643xx is a chip that includes more than just ethernet, this patch makes all those places use either no prefix (for some internal-use-only functions), or the full 'mv643xx_eth_' prefix. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
The fact that mv643xx_eth is an ethernet driver is pretty obvious, and having a lot of internal-use-only functions and defines prefixed with ETH_/ethernet_/eth_ prefixes is rather pointless. So, get rid of most of those prefixes. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Remove the unused rx/tx descriptor field defines, and move the ones that are actually used to the actual definitions of the rx/tx descriptor format. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
All except one of the port serial status register bit defines are unused -- kill the unused ones. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
The only user of the ETH_MIB_VERY_LONG_NAME_HERE defines is the eth_update_mib_counters() function. Get rid of the defines by open-coding the register offsets in the latter. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Get rid of RX_BUF_OFFSET (which is synonymous with ETH_HW_IP_ALIGN). Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Replace the nondescriptive names ETH_INT_UNMASK_ALL and ETH_INT_UNMASK_ALL_EXT by names of the actual fields being masked and unmasked in the various writes to the interrupt mask registers. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
None of the port status register bit defines are ever used in the mv643xx_eth driver -- nuke them all. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Over half of the port serial control register bit defines are never used, and the PORT_SERIAL_CONTROL_DEFAULT_VALUE define is never used either. Keep only those defines that are actually used. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Delete the defines for SDMA config register bit values that are never used in the driver, to tidy up the code some more. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
The port config extend register is never changed at run time. Document the meaning of the initial value, and delete the defines for the individual bits in this register. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
The mv643xx_eth driver only ever changes bit 0 of the port config register at run time, the rest of the register bits are fixed (and always zero). Document the meaning of the chosen default value, and get rid of all the defines for each of the individual bits. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Shorten the various oversized register names in mv643xx_eth.c, to increase readability. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Lennert Buytenhek 提交于
This patch performs a reverse topological sort of all functions in mv643xx_eth.c, so that we can get rid of all forward declarations, and end up with a more understandable driver due to related functions being grouped together. Signed-off-by: NLennert Buytenhek <buytenh@marvell.com> Acked-by: NDale Farnsworth <dale@farnsworth.org>
-
由 Adrian Bunk 提交于
This patch removes CVS keyword that weren't updated for a long time. One of them was printed as part of a printk, which also doesn't make much sense for a 5 year old and no longer updated keyword. Signed-off-by: NAdrian Bunk <bunk@kernel.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Adrian Bunk 提交于
This patch removes CVS keywords that weren't updated for a long time from comments. Signed-off-by: NAdrian Bunk <bunk@kernel.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 11 6月, 2008 3 次提交
-
-
由 Thomas Graf 提交于
Makes people happy who try to keep a list of addresses up to date by listening to notifications. Signed-off-by: NThomas Graf <tgraf@suug.ch> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Harvey Harrison 提交于
Use bitrev16 from lib/bitrev.c. Use the get_unaligned_be16 to get the crc from the packet, create a small helper function for this. Fix a shadowed variable sparse warning: drivers/bluetooth/hci_bcsp.c:218:26: warning: symbol 'hdr' shadows an earlier one drivers/bluetooth/hci_bcsp.c:187:5: originally declared here [akpm@linux-foundation.org: select CONFIG_BITREVERSE, noted by akinobu.mita@gmail.com] Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com> Acked-by: NMarcel Holtmann <marcel@holtmann.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 John W. Linville 提交于
These definitions were originally removed in "mac80211: remove channel use statistics". Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
-
- 10 6月, 2008 8 次提交
-
-
由 John W. Linville 提交于
This restores the effects of "rt2x00: Don't count retries as failure". Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
-
由 David S. Miller 提交于
Conflicts: drivers/net/tg3.c drivers/net/wireless/rt2x00/rt2x00dev.c net/mac80211/ieee80211_i.h
-
由 David S. Miller 提交于
Conflicts: drivers/net/ps3_gelic_wireless.c drivers/net/wireless/libertas/main.c
-
由 Rami Rosen 提交于
- No need to perform data_len = 0 in the switch command, since data_len is initialized to 0 in the beginning of the ipq_build_packet_message() method. - {ip,ip6}_queue: We can reach nlmsg_failure only from one place; skb is sure to be NULL when getting there; since skb is NULL, there is no need to check this fact and call kfree_skb(). Signed-off-by: NRami Rosen <ramirose@gmail.com> Signed-off-by: NPatrick McHardy <kaber@trash.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Rami Rosen 提交于
This patch removes nf_ct_ipv4_ct_gather_frags() method declaration from include/net/netfilter/ipv4/nf_conntrack_ipv4.h, since it is unused in the Linux kernel. Signed-off-by: NRami Rosen <ramirose@gmail.com> Signed-off-by: NPatrick McHardy <kaber@trash.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Fabian Hugelshofer 提交于
When a conntrack is destroyed, the connection status does not get exported to netlink. I don't see a reason for not doing so. This patch exports the status on all conntrack events. Signed-off-by: NFabian Hugelshofer <hugelshofer2006@gmx.ch> Signed-off-by: NPatrick McHardy <kaber@trash.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Fabian Hugelshofer 提交于
Currently the last packet of a connection isn't accounted when its causing abnormal termination. Introduces nf_ct_kill_acct() which increments the accounting counters on conntrack kill. The new function was necessary, because there are calls to nf_ct_kill() which don't need accounting: nf_conntrack_proto_tcp.c line ~847: Kills ct and returns NF_REPEAT. We don't want to count twice. nf_conntrack_proto_tcp.c line ~880: Kills ct and returns NF_DROP. I think we don't want to count dropped packets. nf_conntrack_netlink.c line ~824: As far as I can see ctnetlink_del_conntrack() is used to destroy a conntrack on behalf of the user. There is an sk_buff, but I don't think this is an actual packet. Incrementing counters here is therefore not desired. Signed-off-by: NFabian Hugelshofer <hugelshofer2006@gmx.ch> Signed-off-by: NPatrick McHardy <kaber@trash.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Patrick McHardy 提交于
Encapsulate the common if (del_timer(&ct->timeout)) ct->timeout.function((unsigned long)ct) sequence in a new function. Signed-off-by: NPatrick McHardy <kaber@trash.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-