From: Art -kwaak- van Breemen <ard@telegraafnet.nl>
To: Patrick McHardy <kaber@trash.net>
Cc: linux-net@vger.kernel.org, Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: gretap+vlan+bridge==Oops (2.6.29)
Date: Fri, 17 Apr 2009 18:51:59 +0200 [thread overview]
Message-ID: <20090417165159.GA5098@telegraafnet.nl> (raw)
In-Reply-To: <49E89725.3090305@trash.net>
Hi,
On Fri, Apr 17, 2009 at 04:50:13PM +0200, Patrick McHardy wrote:
> diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
> index 70d3ef4..748d567 100644
> --- a/drivers/net/macvlan.c
> +++ b/drivers/net/macvlan.c
> @@ -387,7 +387,8 @@ static int macvlan_ethtool_get_settings(struct net_device *dev,
> const struct macvlan_dev *vlan = netdev_priv(dev);
> struct net_device *lowerdev = vlan->lowerdev;
>
> - if (!lowerdev->ethtool_ops->get_settings)
> + if (!lowerdev->ethtool_ops ||
> + !lowerdev->ethtool_ops->get_settings)
> return -EOPNOTSUPP;
>
> return lowerdev->ethtool_ops->get_settings(lowerdev, cmd);
> diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
> index 1b34135..6b09213 100644
> --- a/net/8021q/vlan_dev.c
> +++ b/net/8021q/vlan_dev.c
> @@ -668,7 +668,8 @@ static int vlan_ethtool_get_settings(struct net_device *dev,
> const struct vlan_dev_info *vlan = vlan_dev_info(dev);
> struct net_device *real_dev = vlan->real_dev;
>
> - if (!real_dev->ethtool_ops->get_settings)
> + if (!real_dev->ethtool_ops ||
> + !real_dev->ethtool_ops->get_settings)
> return -EOPNOTSUPP;
>
> return real_dev->ethtool_ops->get_settings(real_dev, cmd);
Too lazy to save the patch, so I just typed it :-).
Anyway: it works now as suspected.
On a side note: I was just trying to test gretap since it seems
not fragment packets and somebody else noticed that when adding
.1Q it suddenly fragmented ;-).
On to the next test.
Regards,
Ard
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in email?
prev parent reply other threads:[~2009-04-17 16:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090417143732.GA8564@telegraafnet.nl>
2009-04-17 14:50 ` gretap+vlan+bridge==Oops (2.6.29) Patrick McHardy
2009-04-17 16:51 ` Art -kwaak- van Breemen [this message]
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=20090417165159.GA5098@telegraafnet.nl \
--to=ard@telegraafnet.nl \
--cc=kaber@trash.net \
--cc=linux-net@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).