Re: [PATCH] ipw2200: Fix NETDEV_TX_BUSY erroneous returned



On Wed, 4 Jan 2006 12:09:54 +0800
Zhu Yi <yi.zhu@xxxxxxxxx> wrote:

>
> This patch fixes the warning below warning for the ipw2200 driver.
>
> NETDEV_TX_BUSY returned; driver should report queue full via
> ieee_device->is_queue_full.
>
> Signed-off-by: Hong Liu <hong.liu@xxxxxxxxx>
> Signed-off-by: Zhu Yi <yi.zhu@xxxxxxxxx>
> --
>
> diff -urp linux.orig/drivers/net/wireless/ipw2200.c linux/drivers/net/wireless/ipw2200.c
> --- linux.orig/drivers/net/wireless/ipw2200.c 2005-10-21 05:35:24.000000000 +0800
> +++ linux/drivers/net/wireless/ipw2200.c 2005-10-25 13:22:38.000000000
> +0800
> @@ -9649,11 +9649,6 @@ static inline int ipw_tx_skb(struct ipw_
> u16 remaining_bytes;
> int fc;
>
> - /* If there isn't room in the queue, we return busy and let the
> - * network stack requeue the packet for us */
> - if (ipw_queue_space(q) < q->high_mark)
> - return NETDEV_TX_BUSY;
> -
> switch (priv->ieee->iw_mode) {
> case IW_MODE_ADHOC:
> hdr_len = IEEE80211_3ADDR_LEN;
> @@ -9871,7 +9866,7 @@ static int ipw_net_hard_start_xmit(struc
>
> fail_unlock:
> spin_unlock_irqrestore(&priv->lock, flags);
> - return 1;
> + return -1;

That's not right... -1 is NETDEV_TX_LOCKED, which is not what you want.
Also, please use NETDEV_TX_ values for return values from transmit routine.

You should post this to netdev@xxxxxxxxxxxxxxx and ipw2100-devel@xxxxxxxxxxxxxxxxxxxxx
for discussion there.
--
Stephen Hemminger <shemminger@xxxxxxxx>
OSDL http://developer.osdl.org/~shemminger
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • wireless linux driver problems
    ... browsing around the web to find the windows driver, ... iwlist wlan0 [parameters] ... warning: assignment from incompatible pointer type ...
    (Ubuntu)
  • Re: Driver Updates
    ... That warning cannot be removed. ... I have installed a later driver than the one that windows update insists is ... WU can't see that there is a newer driver already installed. ... Nvidia drivers and Windows Update wants to install 52.16. ...
    (microsoft.public.windowsupdate)
  • Re: [v2 PATCH 7/7] EDAC: AMD8131 driver Kconfig and Makefile - errors
    ... Subject: EDAC: AMD8131 driver Kconfig and Makefile ... The second warning about passing argument 2 for edac_device_alloc_ctl_info discarding qualifiers is resulted from the fact that now the 2nd parameter is of type of char *, whereas I am passing a const char *, after I remove the "const" qualifier from amd8111_dev_info.ctl_name, this warning can be eliminated. ...
    (Linux-Kernel)
  • WARNING: at net/core/dev.c:2161 net_rx_action()
    ... got this warning with Linus' latest -git tree: ... # NUMA requires SMP, 64GB highmem support, ACPI ... # DCCP Kernel Hacking ... # Generic Driver Options ...
    (Linux-Kernel)
  • ANNOUNCE: DBI 1.54 RC6 - including cool new DBD::Gofer stateless proxy
    ... WARNING: This version has some subtle changes in DBI internals. ... Changed setting trace file to no longer write "Trace file set" to new file. ... Updated DBI::DBD docs for driver authors thanks to Ammon Riley ...
    (perl.dbi.users)