login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
1
Re: [PATCH] e1000, e1000e valid-addr fixes
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [PATCH] e1000, e1000e valid-addr fixes
Date: Thursday, November 1, 2007 - 11:47 am
Kok, Auke wrote:
quoted text
> David Miller wrote: >> From: Jeff Garzik <jeff@garzik.org> >> Date: Tue, 23 Oct 2007 22:20:30 -0400 >> >>> David Miller wrote: >>>> From: Jeff Garzik <jeff@garzik.org> >>>> Date: Tue, 23 Oct 2007 21:03:36 -0400 >>>> >>>>> I'm wondering if there is a way to avoid adding >>>>> >>>>> if (!is_valid_ether_addr(dev->dev_addr)) >>>>> return -EINVAL; >>>>> >>>>> to every ethernet driver's ->open() hook. >>>> The first idea I get is: >>>> >>>> 1) Create netdev->validate_dev_addr(). >>>> >>>> 2) If it exists, invoke it before ->open(), abort >>>> and return if any errors signaled. >>>> >>>> etherdev init hooks up a function that does the above >>>> check, which allows us to avoid editing every ethernet >>>> driver >>>> >>>> What do you think? >>> Seems sane to me. Something like this (attached)? >> Looks great: >> >> Acked-by: David S. Miller <davem@davemloft.net> > > I like it. > > Should I start sending patches to remove the checks from e1000/e1000e/ixgb/ixgbe > already (to David, I assume?)?
Send the patches to me like normal... Jeff -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Adam Jackson
, (Tue Oct 23, 7:58 am)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Kok, Auke
, (Tue Oct 23, 9:18 am)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Adam Jackson
, (Tue Oct 23, 9:21 am)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Kok, Auke
, (Tue Oct 23, 10:09 am)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Jeff Garzik
, (Tue Oct 23, 1:40 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Kok, Auke
, (Tue Oct 23, 2:01 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Dave Jones
, (Tue Oct 23, 2:20 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Alan Cox
, (Tue Oct 23, 2:38 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, David Miller
, (Tue Oct 23, 2:48 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, David Miller
, (Tue Oct 23, 2:51 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, David Miller
, (Tue Oct 23, 2:53 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Kok, Auke
, (Tue Oct 23, 4:03 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Kok, Auke
, (Tue Oct 23, 4:19 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Stephen Hemminger
, (Tue Oct 23, 4:53 pm)
[PATCH] e1000, e1000e valid-addr fixes
, Jeff Garzik
, (Tue Oct 23, 5:55 pm)
Re: [PATCH] e1000, e1000e valid-addr fixes
, Jeff Garzik
, (Tue Oct 23, 6:03 pm)
Re: [PATCH] e1000, e1000e valid-addr fixes
, David Miller
, (Tue Oct 23, 6:07 pm)
Re: [PATCH] e1000, e1000e valid-addr fixes
, Adrian Bunk
, (Tue Oct 23, 6:15 pm)
Re: [PATCH] e1000, e1000e valid-addr fixes
, Jeff Garzik
, (Tue Oct 23, 7:20 pm)
Re: [PATCH] e1000, e1000e valid-addr fixes
, David Miller
, (Tue Oct 23, 7:23 pm)
Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000.
, Dave Jones
, (Tue Oct 23, 10:38 pm)
Re: [PATCH] e1000, e1000e valid-addr fixes
, Kok, Auke
, (Thu Nov 1, 11:04 am)
Re: [PATCH] e1000, e1000e valid-addr fixes
, Stephen Hemminger
, (Thu Nov 1, 11:11 am)
Re: [PATCH] e1000, e1000e valid-addr fixes
, Jeff Garzik
, (Thu Nov 1, 11:47 am)
Re: [PATCH] e1000, e1000e valid-addr fixes
, Jeff Garzik
, (Thu Nov 1, 12:31 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Hugh Dickins
Re: Linux 2.6.26-rc1 - pgtable_32.c:178 pmd_bad
Bernhard Beck
[PATCH 001/001] usb-serial: Add ThinkOptics WavIT
Oleg Nesterov
Re: [PATCH 4/5] don't panic if /sbin/init exits or killed
Greg KH
[patch 07/21] rtc-pcf8563: detect polarity of century bit automatically
git
:
Jonathan del Strother
Re: [PATCH] Fixing path quoting issues
Gerrit Pape
[PATCH] fix skipping merge-order test with NO_OPENSSL=1.
Linus Torvalds
Re: Implementing branch attributes in git config
Johannes Schindelin
Re: Trying to use git-filter-branch to compress history by removing large, obsolet...
Gerrit Pape
[PATCH] hooks--update: fix test for properly set up project description file
linux-netdev
:
David Miller
Re: [PATCH 04/15] tg3: Preserve LAA when device control is released
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Sven Wegener
[PATCH] ipvs: Add missing locking during connection table hashing and unhashing
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
Stephen Hemminger
[PATCH 2/2] sky2: fix transmit state on resume
git-commits-head
:
Linux Kernel Mailing List
[SCSI] scsi ioctl: fix kernel-doc warning
Linux Kernel Mailing List
ALSA: HDA - Correct trivial typos in comments.
Linux Kernel Mailing List
i2c-viapro: Add support for SMBus Process Call transactions
Linux Kernel Mailing List
i2c: Documentation: upgrading clients HOWTO
Linux Kernel Mailing List
[PATCH] fix sysctl_nr_open bugs
openbsd-misc
:
Die Gestalt
Re: How to re-build openssl with SHA1 support?
Edwin Eyan Moragas
Re: managing routes for multiple PPPoE connections
Brian Candler
Re: OBSD's perspective on SELinux
Jonathan Schleifer
Why is getaddrinfo breaking POSIX?
Predrag Punosevac
Re: Kernel developers guide/tutorial
Colocation donated by:
Syndicate