From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Stephen Moorby <steve.moorby@ntlworld.com>
Cc: davem@davemloft.net, jiri@resnulli.us, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] drivers/net: param for lapbether for specific ethernet device
Date: Wed, 19 Jun 2013 17:47:48 +0400 [thread overview]
Message-ID: <51C1B684.6010700@cogentembedded.com> (raw)
In-Reply-To: <51C16A07.3070903@ntlworld.com>
Hello.
On 19-06-2013 12:21, Stephen Moorby wrote:
> From 35607dd0607bca5322860703143c31cb04377764 Mon Sep 17 00:00:00 2001
> From: Stephen Moorby <steve.moorby@ntlworld.com>
> Date: Wed, 19 Jun 2013 08:22:51 +0100
> Subject: [PATCH 1/1] drivers/net: param for lapbether for specific ethernet
> device
No need for this header.
> The lapbether driver binds to the first ethernet device that comes up.
> This causes problems in hardware with multiple ethernet interfaces,
> potentially resulting in the LAPB traffic on the wrong interface.
> Have added a module parameter 'eth_dev' to specify the ethernet
> interface over which lapbether should operate. The module behaves
> as before if no device is specified.
>
> Patch created on linux-next 18-Jun-2013.
> Tested on 2.6.32-45-generic.
>
> Signed-off-by: Stephen Moorby <steve.moorby@ntlworld.com>
> ---
> drivers/net/wan/lapbether.c | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
> index a33a46f..510fc4a 100644
> --- a/drivers/net/wan/lapbether.c
> +++ b/drivers/net/wan/lapbether.c
[...]
> @@ -381,8 +382,14 @@ static int lapbeth_device_event(struct
> notifier_block *this,
Your patch is line-wrapped.
> switch (event) {
> case NETDEV_UP:
> /* New ethernet device -> new LAPB interface */
> - if (lapbeth_get_x25_dev(dev) == NULL)
> - lapbeth_new_device(dev);
> + if (lapbeth_get_x25_dev(dev) == NULL) {
> + if (NULL != eth_dev) {
> + if (0 == strcmp(dev->name, eth_dev))
> + lapbeth_new_device(dev);
> + } else {
> + lapbeth_new_device(dev);
> + }
> + }
It seems the patch is also white space damaged, i.e. tabs converted
to spaces.
WBR, Sergei
next prev parent reply other threads:[~2013-06-19 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 8:21 [PATCH 1/1] drivers/net: param for lapbether for specific ethernet device Stephen Moorby
2013-06-19 8:37 ` David Miller
2013-06-19 13:47 ` Sergei Shtylyov [this message]
2013-06-19 16:16 ` Ben Hutchings
-- strict thread matches above, loose matches on Subject: below --
2013-06-19 15:26 Stephen Moorby
2013-06-19 19:18 ` David Miller
2013-06-19 20:19 ` Stephen Moorby
2013-06-19 22:48 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51C1B684.6010700@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=jiri@resnulli.us \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=steve.moorby@ntlworld.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox