[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDOMVgW2jNR3n68QhbWh7EfTHRMYRNBrZkyKAA2x-T5ZO0ZiA@mail.gmail.com>
Date: Mon, 21 Jul 2014 23:38:37 -0400
From: Nick Krause <xerofoify@...il.com>
To: chas williams - CONTRACTOR <chas@....nrl.navy.mil>
Cc: linux-atm-general@...ts.sourceforge.net, netdev@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: solos-pci.c: Fix me
On Mon, Jul 21, 2014 at 2:18 PM, chas williams - CONTRACTOR
<chas@....nrl.navy.mil> wrote:
> On Mon, 21 Jul 2014 13:42:01 -0400
> Nick Krause <xerofoify@...il.com> wrote:
>
>> On Mon, Jul 21, 2014 at 9:14 AM, chas williams - CONTRACTOR
>> <chas@....nrl.navy.mil> wrote:
> ...
>> > @@ -850,8 +850,7 @@ static void solos_bh(unsigned long card_arg)
>> > dev_kfree_skb_any(skb);
>> > break;
>> >
>> > - case PKT_COMMAND:
>> > - default: /* FIXME: Not really, surely? */
>> > + default: /* PKT_COMMAND */
>> > if (process_command(card, port, skb))
>> > break;power
>> > spin_lock(&card->cli_queue_lock);
>> >
>> > and be done with it since that will preserve existing behavior.
>>
>>
>> My only question then is this function causing bugs as is?
>> Cheers Nick
>>
>
> It has been there since the first version of this driver was released.
> If it were breaking things, I would have to guess it would have been
> noticed by now.
>
> Just looking at the PKT_* defines, I would wildly guess that PKT_COMMAND
> PKT_POPEN and PKT_PCLOSE are all being handled via the PKT_COMMAND|default
> case. If not, popen and pclose would be leaking a skb for each usage
> (which would be opening and closing the PVC -- not very often).
>
> popen and pclose just seem like specialized PKT_COMMAND types.
> process_command() woud ignore PKT_POPEN and PKT_PCLOSE since they aren't
> long enough to contain a command. So maybe the comment should just go
> away.
>
> If you had access to hardware you could probably figure this out pretty
> quickly. The programmer's manual doesn't seem to be available.
Seems based on your ideas , I can remove this FIX ME. I will send a patch
doing this.
Cheers Nick
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists