Re: [PATCHv3] drivers/net/usb: Add new driver ipheth

Previous thread: [PATCHv6 0/4] tracing: function graph output for preempt/irqs-off tracers by Jiri Olsa on Friday, April 2, 2010 - 10:01 am. (15 messages)

Next thread: Re: 64 bit Descriptors in ADMA of Linux SDHost controller driver. by Pierre Ossman on Friday, April 2, 2010 - 10:16 am. (1 message)
From: =?UTF-8?B?IkwuIEFsYmVydG8gR2ltw6luZXoi?=
Date: Friday, April 2, 2010 - 10:15 am

Hi Ben,

Upstream has fixed several errors pointed out by you and Oliver (thanks
for that), but some of them are still pending.

I will send patches on top of my last driver submission (if the proper
way would be resubmit the whole code, please tell me. Anyway I need to

What is not longer needed? The assignment, the whole "else" branch? If

Ok, I will just remove both #ifdefs, but why is that? Maybe in previous
versions of the kernel the net_device_ops struct was introduced and now

I think that Greg is the maintainer for the USB subsystem, so if he has
no further commets, I will try to submit fixes for both your and
Oliver's comments along with the upstream developers.

Thanks for your comments.


Best regards,
-- 
L. Alberto Giménez
JabberID agimenez@jabber.sysvalve.es
GnuPG key ID 0x3BAABDE1
--

From: Ben Hutchings
Date: Friday, April 2, 2010 - 10:21 am

Since David Miller has not merged your original patch, you should send a

[...]

Correct, it is now mandatory.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--

From: =?UTF-8?B?IkwuIEFsYmVydG8gR2ltw6luZXoi?=
Date: Friday, April 2, 2010 - 10:53 am

Hi,

I've been looking into this and it seems that the net_device.trans_start
field is now deprecated in favor of net_device.rx_queue.trans_start
-rx_queue is a struct netdev_queue- (file include/linux/netdevice.h), as
states the comment:

512         /*
513          * please use this field instead of dev->trans_start
514          */
515         unsigned long           trans_start;

Reading LDD3 book, it says that the driver is reponsible for updating
trans_start (as well as trans_rx, but we're not talking about that one).

So, I guess that the LDD book is outdated (again ;) ), but what I don't
understand at all is wether the driver should keep updating the right
field (dev->rx_queue.trans_start) or if the fact that it's inside a
"queue" implies that the code that is responsible for that queue would
update the trans_start field by itself?

Thanks in advance.

Best regards,
-- 
L. Alberto Giménez
JabberID agimenez@jabber.sysvalve.es
GnuPG key ID 0x3BAABDE1
--

Previous thread: [PATCHv6 0/4] tracing: function graph output for preempt/irqs-off tracers by Jiri Olsa on Friday, April 2, 2010 - 10:01 am. (15 messages)

Next thread: Re: 64 bit Descriptors in ADMA of Linux SDHost controller driver. by Pierre Ossman on Friday, April 2, 2010 - 10:16 am. (1 message)