compat: backport ether_addr_equal
PATCH 1/1 compat: backport ether_addr_equal
This backports:
commit a599b0f54d233d0f63d6be9a2ff0049d24751669
Author: Joe Perches <[email protected]>
Date: Tue May 8 18:56:45 2012 +0000
etherdevice.h: Add ether_addr_equal
Add a boolean function to check if 2 ethernet addresses are the same.
This is to avoid any confusion about compare_ether_addr returning an unsigned, and not being able to use the compare_ether_addr function for sorting ala memcmp.
[root@ozzyfedora compat]# bin/ckmake
Trying kernel 3.3.4-5.fc17.x86_64 [OK]
--- include/linux/compat-3.5.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/linux/compat-3.5.h +7 -0
@@ -3,6 +3,7 @@#include <linux/version.h> #include <linux/fs.h> +#include <linux/etherdevice.h> #if (LINUX_VERSION_CODE <KERNEL_VERSION (3 ,5 ,0 ))
@@ -12,6 +13,12 @@ extern int simple_open(struct inode *inode, struct file *file);#define tty_lock (__tty) tty_lock()#define tty_unlock (__tty) tty_unlock() +/* Backport ether_addr_equal */ +static inline bool ether_addr_equal (const u8 *addr1,const u8 *addr2) +{ +return !compare_ether_addr (addr1, addr2); +} +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ #endif /* LINUX_3_5_COMPAT_H */
Signature · 1 line
1.7.10.1
Quoted 15 lines · Ozan Çağlayan
This backports:
commit
a599b0f54d233d0f63d6be9a2ff0049d24751669
Author: Joe Perches <[email protected]>
Date: Tue May 8 18:56:45 2012 +0000etherdevice.h: Add
ether_addr_equalAdd a boolean function to check if 2 ethernet addresses are the same.
This is to avoid any confusion about
compare_ether_addrreturning an unsigned, and not being able to use thecompare_ether_addrfunction for sorting ala memcmp.
Quoted 7 lines
Signed-off-by Joe Perches <[email protected]>Signed-off-by David S. Miller <[email protected]>[root@ozzyfedora compat]# bin/ckmake
Trying kernel 3.3.4-5.fc17.x86_64 [OK]Signed-off-by Ozan Çağlayan <[email protected]>
Thanks!! BTW I see this though:
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
And then all I see is this when I save the e-mail to a txt file, given that the encoding is base64. This is odd given that I see you sent this with X-Mailer: git-send-email 1.7.10.1 -- so not sure how this ended up going out like this.
This is what I see when I save the e-mail:
VGhpcyBiYWNrcG9ydHM6CgogICAgY29tbWl0IGE1OTliMGY1NGQyMzNkMGY2M2Q2YmU5YTJmZjAw NDlkMjQ3NTE2NjkKICAgIEF1dGhvcjogSm9lIFBlcmNoZXMgPGpvZUBwZXJjaGVzLmNvbT4KICAg IERhdGU6ICAgVHVlIE1heSA4IDE4OjU2OjQ1IDIwMTIgKzAwMDAKCiAgICAgICAgZXRoZXJkZXZp Y2UuaDogQWRkIGV0aGVyX2FkZHJfZXF1YWwKCiAgICAgICAgQWRkIGEgYm9vbGVhbiBmdW5jdGlv biB0byBjaGVjayBpZiAyIGV0aGVybmV0IGFkZHJlc3NlcwogICAgICAgIGFyZSB0aGUgc2FtZS4K CiAgICAgICAgVGhpcyBpcyB0byBhdm9pZCBhbnkgY29uZnVzaW9uIGFib3V0IGNvbXBhcmVfZXRo ZXJfYWRkcgogICAgICAgIHJldHVybmluZyBhbiB1bnNpZ25lZCwgYW5kIG5vdCBiZWluZyBhYmxl IHRvIHVzZSB0aGUKICAgICAgICBjb21wYXJlX2V0aGVyX2FkZHIgZnVuY3Rpb24gZm9yIHNvcnRp bmcgYWxhIG1lbWNtcC4KCiAgICAgICAgU2lnbmVkLW9mZi1ieTogSm9lIFBlcmNoZXMgPGpvZUBw ZXJjaGVzLmNvbT4KICAgICAgICBTaWduZWQtb2ZmLWJ5OiBEYXZpZCBTLiBNaWxsZXIgPGRhdmVt QGRhdmVtbG9mdC5uZXQ+Cgpbcm9vdEBvenp5ZmVkb3JhIGNvbXBhdF0jIGJpbi9ja21ha2UKVHJ5 aW5nIGtlcm5lbCAgICAgICAgICAgICAgICAgICAgICAzLjMuNC01LmZjMTcueDg2XzY0ICBbT0td CgpTaWduZWQtb2ZmLWJ5OiBPemFuIMOHYcSfbGF5YW4gPG96YW5jYWdAZ21haWwu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PTVBBVF9IICovCi0tIAoxLjcuMTAuMQoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX18KTGZfZHJpdmVyX2JhY2twb3J0IG1haWxpbmcgbGlzdApMZl9kcml2 ZXJfYmFja3BvcnRAbGlzdHMubGludXgtZm91bmRhdGlvbi5vcmcKaHR0cHM6Ly9saXN0cy5saW51 eGZvdW5kYXRpb24ub3JnL21haWxtYW4vbGlzdGluZm8vbGZfZHJpdmVyX2JhY2twb3J0Cg==
Quoted 1 line · Luis R. Rodriguez
This is what I see when I save the e-mail:
<-- snip -->
I've used http://www.opinionatedgeek.com/dotnet/tools/base64decode/ to decode this to a file, I'm testing it now with ckmake on compat and compat-wireless, thanks!
Luis
Quoted 26 lines · Luis R. Rodriguez
Quoted 15 lines · Ozan Çağlayan
This backports:
commit
a599b0f54d233d0f63d6be9a2ff0049d24751669
Author: Joe Perches <[email protected]>
Date: Tue May 8 18:56:45 2012 +0000
etherdevice.h: Addether_addr_equalAdd a boolean function to check if 2 ethernet addresses are the same.
This is to avoid any confusion about
compare_ether_addrreturning an unsigned, and not being able to use thecompare_ether_addrfunction for sorting ala memcmp.Quoted 7 lines
Signed-off-by Joe Perches <[email protected]>Signed-off-by David S. Miller <[email protected]>[root@ozzyfedora compat]# bin/ckmake
Trying kernel 3.3.4-5.fc17.x86_64 [OK]Signed-off-by Ozan Çağlayan <[email protected]>Thanks!! BTW I see this though:
Quoted 7 lines
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64And then all I see is this when I save the e-mail to a txt file, given that the encoding is base64. This is odd given that I see you sent this with X-Mailer: git-send-email 1.7.10.1 -- so not sure how this ended up going out like this.
That's strange, when I save this mail I got over the mailing list with Thunderbird it is not based64 encoded and when looking into the source code with my mail program it is normal text mail.
From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= <[email protected]>
Subject: [PATCH] compat: backport ether_addr_equal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Hauke
Quoted 8 lines · Hauke Mehrtens
Quoted 7 lines
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64And then all I see is this when I save the e-mail to a txt file, given that the encoding is base64. This is odd given that I see you sent this with X-Mailer: git-send-email 1.7.10.1 -- so not sure how this ended up going out like this.
Quoted 8 lines
That's strange, when I save this mail I got over the mailing list with Thunderbird it is not based64 encoded and when looking into the source code with my mail program it is normal text mail.
From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= <[email protected]>
Subject: [PATCH] compat: backportether_addr_equal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Well, which list? :-)
I suspect you looked at linux-wireless, and Luis looked at lf_driver_backport (given his reply tag), so maybe the lf_driver_backport list re-encoded the email.
johannes
Quoted 19 lines · Johannes Berg
Quoted 8 lines · Hauke Mehrtens
Quoted 7 lines
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64And then all I see is this when I save the e-mail to a txt file, given that the encoding is base64. This is odd given that I see you sent this with X-Mailer: git-send-email 1.7.10.1 -- so not sure how this ended up going out like this.
Quoted 8 lines
That's strange, when I save this mail I got over the mailing list with Thunderbird it is not based64 encoded and when looking into the source code with my mail program it is normal text mail.
From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= <[email protected]>
Subject: [PATCH] compat: backportether_addr_equal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Quoted 5 lines
Well, which list? :-)
I suspect you looked at linux-wireless, and Luis looked at
lf_driver_backport(given his reply tag), so maybe thelf_driver_backportlist re-encoded the email.
Great, so gmail doesn't even let me "see" the linux-wireless e-mail if it was sent also to lf_driver_backport, I can tell given that I cannot see the bottom of the e-mail a footer indicating this came from linux-wireless. If lf_driver_backport re-encoded it then it seems all patches sent to that list get busted. Bleh. I gotta address this...
froh you seem to be listed as the owner of the list, can you review this?
Luis
Quoted 33 lines · Luis R. Rodriguez
Quoted 19 lines · Johannes Berg
Quoted 8 lines · Hauke Mehrtens
Quoted 7 lines
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64And then all I see is this when I save the e-mail to a txt file, given that the encoding is base64. This is odd given that I see you sent this with X-Mailer: git-send-email 1.7.10.1 -- so not sure how this ended up going out like this.
Quoted 8 lines
That's strange, when I save this mail I got over the mailing list with Thunderbird it is not based64 encoded and when looking into the source code with my mail program it is normal text mail.
From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= <[email protected]>
Subject: [PATCH] compat: backportether_addr_equal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bitQuoted 5 lines
Well, which list? :-)
I suspect you looked at linux-wireless, and Luis looked at
lf_driver_backport(given his reply tag), so maybe thelf_driver_backportlist re-encoded the email.Great, so gmail doesn't even let me "see" the linux-wireless e-mail if it was sent also to
lf_driver_backport, I can tell given that I cannot see the bottom of the e-mail a footer indicating this came from linux-wireless. Iflf_driver_backportre-encoded it then it seems all patches sent to that list get busted. Bleh. I gotta address this...
Quoted 3 lines
froh you seem to be listed as the owner of the list, can you review this?
Luis
All the mails I got through lf_driver_backport are base64 encoded and if I and the lf_driver_backport mailing list are in CC or TO I just get one mail directly and no mail through the list, different to wireless-testing mailing list where I would get two mails, one directly and one through the list.
Hauke
Quoted 36 lines · Hauke Mehrtens
Quoted 35 lines · Luis R. Rodriguez
Quoted 19 lines · Johannes Berg
Quoted 8 lines · Hauke Mehrtens
Quoted 7 lines
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64And then all I see is this when I save the e-mail to a txt file, given that the encoding is base64. This is odd given that I see you sent this with X-Mailer: git-send-email 1.7.10.1 -- so not sure how this ended up going out like this.
Quoted 8 lines
That's strange, when I save this mail I got over the mailing list with Thunderbird it is not based64 encoded and when looking into the source code with my mail program it is normal text mail.
From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= <[email protected]>
Subject: [PATCH] compat: backportether_addr_equal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bitQuoted 5 lines
Well, which list? :-)
I suspect you looked at linux-wireless, and Luis looked at
lf_driver_backport(given his reply tag), so maybe thelf_driver_backportlist re-encoded the email.Great, so gmail doesn't even let me "see" the linux-wireless e-mail if it was sent also to
lf_driver_backport, I can tell given that I cannot see the bottom of the e-mail a footer indicating this came from linux-wireless. Iflf_driver_backportre-encoded it then it seems all patches sent to that list get busted. Bleh. I gotta address this...froh you seem to be listed as the owner of the list, can you review this?
Quoted 7 lines
Quoted 1 line
Luis
All the mails I got through
lf_driver_backportare base64 encoded and if I and thelf_driver_backportmailing list are in CC or TO I just get one mail directly and no mail through the list, different to wireless-testing mailing list where I would get two mails, one directly and one through the list.
Thanks Hauke, in the meantime lets ignore the lf_driver_backport list then...
Luis