Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 694140 Details for
Bug 856764
RHEL 6.5 Common Network Backports Tracker
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Add eth_zero_addr() support function to support ethernet type drivers
f931ce_eth_zero_addr.patch (text/plain), 1.25 KB, created by
John Greene
on 2013-02-06 21:07:43 UTC
(
hide
)
Description:
Add eth_zero_addr() support function to support ethernet type drivers
Filename:
MIME Type:
Creator:
John Greene
Created:
2013-02-06 21:07:43 UTC
Size:
1.25 KB
patch
obsolete
>commit f931ce161d2b3772e554491b9206a534442d4a9c >Author: Duan Jiong <djduanjiong@gmail.com> >Date: Sat Sep 8 16:32:28 2012 +0000 > > etherdevice: introduce help function eth_zero_addr() > > a lot of code has either the memset or an inefficient copy > from a static array that contains the all-zeros Ethernet address. > Introduce help function eth_zero_addr() to fill an address with > all zeros, making the code clearer and allowing us to get rid of > some constant arrays. > > Signed-off-by: Duan Jiong <djduanjiong@gmail.com> > Signed-off-by: David S. Miller <davem@davemloft.net> > >diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h >index 2d47256..6e38d60 100644 >--- a/include/linux/etherdevice.h >+++ b/include/linux/etherdevice.h >@@ -145,6 +145,17 @@ static inline void dev_hw_addr_random(struct net_device *dev, u8 *hwaddr) > } > > /** >+ * eth_zero_addr - Assign zero address >+ * @addr: Pointer to a six-byte array containing the Ethernet address >+ * >+ * Assign the zero address to the given address array. >+ */ >+static inline void eth_zero_addr(u8 *addr) >+{ >+ memset(addr, 0x00, ETH_ALEN); >+} >+ >+/** > * eth_hw_addr_random - Generate software assigned random Ethernet and > * set device flag > * @dev: pointer to net_device structure
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 856764
:
689769
| 694140 |
765630
|
765631
|
765632
|
765633
|
765634
|
765635
|
765636
|
765637
|
765639
|
765640
|
765641
|
765642
|
765643