tree: git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next.git
master
head: b876a744a228308ecf75466831453f0863d253db
commit: ba418fa357a7b3c9d477f4706c6c7c96ddbd1360 soreuseport: UDP/IPv4
implementation
date: 5 hours ago
sparse warnings: (new ones prefixed by >>)
>> net/ipv4/udp.c:432:60: sparse: cast from restricted __be16
>> net/ipv4/udp.c:432:60: sparse: incorrect type in argument 1 (different base
>> types)
net/ipv4/udp.c:432:60: expected unsigned short [unsigned] [usertype] val
net/ipv4/udp.c:432:60: got restricted __be16 [usertype] sport
>> net/ipv4/udp.c:432:60: sparse: cast from restricted __be16
>> net/ipv4/udp.c:432:60: sparse: cast from restricted __be16
net/ipv4/udp.c:513:60: sparse: cast from restricted __be16
net/ipv4/udp.c:513:60: sparse: incorrect type in argument 1 (different base
types)
net/ipv4/udp.c:513:60: expected unsigned short [unsigned] [usertype] val
net/ipv4/udp.c:513:60: got restricted __be16 [usertype] sport
net/ipv4/udp.c:513:60: sparse: cast from restricted __be16
net/ipv4/udp.c:513:60: sparse: cast from restricted __be16
include/net/sock.h:1743:19: sparse: incompatible types in comparison
expression (different address spaces)
include/net/sock.h:1743:19: sparse: incompatible types in comparison
expression (different address spaces)
vim +432 net/ipv4/udp.c
416 struct hlist_nulls_node *node;
417 int score, badness, matches = 0, reuseport = 0;
418 u32 hash = 0;
419
420 begin:
421 result = NULL;
422 badness = 0;
423 udp_portaddr_for_each_entry_rcu(sk, node, &hslot2->head) {
424 score = compute_score2(sk, net, saddr, sport,
425 daddr, hnum, dif);
426 if (score > badness) {
427 result = sk;
428 badness = score;
429 reuseport = sk->sk_reuseport;
430 if (reuseport) {
431 hash = inet_ehashfn(net, daddr, hnum,
> 432 saddr,
> htons(sport));
433 matches = 1;
434 }
435 } else if (score == badness && reuseport) {
436 matches++;
437 if (((u64)hash * matches) >> 32 == 0)
438 result = sk;
439 hash = next_pseudo_random32(hash);
440 }
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit
http://communities.intel.com/community/wired