login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
24
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: Tuesday, October 23, 2007 - 7:20 pm
David Miller wrote:
quoted text
> 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)? Jeff
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
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Dave Hansen
Re: [RFC][PATCH 4/7] RSS accounting hooks over the code
Alan D. Brunelle
Re: [RFC][PATCH 0/3] Skip I/O merges when disabled
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Petr Baudis
Re: PPC SHA-1 Updates in "pu"
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Darrin Chandler
Re: strange output on openbsd C code
Christian Weisgerber
Re: CARP with a single public IP address
Nick Holland
Re: Install OpenBSD from USB ?
KURS ENGLESKOG JEZIKA NA 10 CD-a
AUDIO-VIZUELNA METODA UCENJA ENGLESKOG JEZIKA na 10 CD-a
Colocation donated by:
Syndicate