All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rakesh Ranjan <rakesh@chelsio.com>
To: Patrick McHardy <kaber@trash.net>
Cc: kxie@chelsio.com, linux-scsi@vger.kernel.org,
	open-iscsi@googlegroups.com, netdev@vger.kernel.org,
	davem@davemloft.net, James.Bottomley@HansenPartnership.com,
	michaelc@cs.wisc.edu, linux-kernel@vger.kernel.org,
	Rakesh Ranjan <rakesh@chelsio.com>
Subject: Re: [PATCH 1/1] cxgb3i: Fix a login over vlan issue
Date: Thu, 10 Dec 2009 19:16:12 +0530	[thread overview]
Message-ID: <4B20FBA4.9040003@chelsio.com> (raw)
In-Reply-To: <4B20E05C.1010604@trash.net>

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

Patrick McHardy wrote:
> kxie@chelsio.com wrote:
>> [PATCH 1/1] cxgb3i: Fix a login over vlan issue
>>
>> From: Karen Xie <kxie@chelsio.com>
>>
>> Fix a login over vlan issue, when parent interface is vlan and we are using
>>
>> cxgb3i sepecific private ip address in '/etc/iscsi/ifaces/' iface file.
>>
>> +/**
>> + * cxgb3i_find_dev - find the interface associated with the given address
>> + * @ipaddr: ip address
>> + */
>> +static struct net_device *cxgb3i_find_dev(__be32 ipaddr)
>> +{
>> +	struct flowi fl;
>> +	int err;
>> +	struct rtable *rt;
>> +
>> +	memset(&fl, 0, sizeof(fl));
>> +	fl.nl_u.ip4_u.daddr = ipaddr;
>> +
>> +	err = ip_route_output_key(&init_net, &rt, &fl);
>> +	if (!err)
>> +		return (&rt->u.dst)->dev;
>> +
>> +	return NULL;
>> +}
> 
> This probably shouldn't be using init_net but the current namespace.

Hi Patrick,

Thanks for review, will fix that and send another path shortly.

Regards
Rakesh Ranjan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 898 bytes --]

  reply	other threads:[~2009-12-10 13:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-10  5:35 [PATCH 1/1] cxgb3i: Fix a login over vlan issue kxie
2009-12-10 11:49 ` Patrick McHardy
2009-12-10 13:46   ` Rakesh Ranjan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-12-04 11:04 Rakesh Ranjan
2009-12-07 16:34 ` Mike Christie
2009-12-10  5:26   ` Karen Xie
2009-12-10  5:26     ` Karen Xie

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=4B20FBA4.9040003@chelsio.com \
    --to=rakesh@chelsio.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=davem@davemloft.net \
    --cc=kaber@trash.net \
    --cc=kxie@chelsio.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    --cc=netdev@vger.kernel.org \
    --cc=open-iscsi@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.