svn commit: r272614 - head/sys/netpfil/ipfw

2014-10-06 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Oct 6 12:29:06 2014 New Revision: 272614 URL: https://svnweb.freebsd.org/changeset/base/272614 Log: Improve r272609 (O_TCPOPTS). MFC after:3 dayes Modified: head/sys/netpfil/ipfw/ip_fw2.c Modified: head/sys/netpfil/ipfw/ip_fw2.c ==

svn commit: r272609 - head/sys/netpfil/ipfw

2014-10-06 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Oct 6 11:15:11 2014 New Revision: 272609 URL: https://svnweb.freebsd.org/changeset/base/272609 Log: Fix O_TCPOPTS processing. Obtained from:luigi Modified: head/sys/netpfil/ipfw/ip_fw2.c Modified: head/sys/netpfil/ipfw/ip_fw2.c ===

svn commit: r272607 - head/sbin/ipfw

2014-10-06 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Oct 6 11:00:47 2014 New Revision: 272607 URL: https://svnweb.freebsd.org/changeset/base/272607 Log: Improve "reserved keywords" hack: we can't easily predict (in current parsing model) if the keyword is ipfw(8) reserved keyword or port name. Checking proto da

Re: svn commit: r271207 - head/sys/dev/ahci

2014-10-04 Thread Alexander V. Chernikov
On 06.09.2014 23:43, Alexander Motin wrote: > Author: mav > Date: Sat Sep 6 19:43:48 2014 > New Revision: 271207 > URL: http://svnweb.freebsd.org/changeset/base/271207 > > Log: > Save one register read (AHCI_IS) for AHCI controllers with only one port. > > For controllers with only one por

svn commit: r272518 - head/sys/netpfil/ipfw

2014-10-04 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Oct 4 12:46:26 2014 New Revision: 272518 URL: https://svnweb.freebsd.org/changeset/base/272518 Log: Bump max rule size to 512 opcodes. Modified: head/sys/netpfil/ipfw/ip_fw_sockopt.c Modified: head/sys/netpfil/ipfw/ip_fw_sockopt.c =

Re: svn commit: r272391 - in head/sys: netinet netinet6

2014-10-03 Thread Alexander V. Chernikov
On 02.10.2014 14:32, Gleb Smirnoff wrote: On Thu, Oct 02, 2014 at 12:16:15PM +0400, Alexander V. Chernikov wrote: A> On 02.10.2014 04:25, Hiroki Sato wrote: A> > Author: hrs A> > Date: Thu Oct 2 00:25:57 2014 A> > New Revision: 272391 A> > URL: https://svnweb.freebsd.

Re: svn commit: r272391 - in head/sys: netinet netinet6

2014-10-02 Thread Alexander V. Chernikov
On 02.10.2014 04:25, Hiroki Sato wrote: Author: hrs Date: Thu Oct 2 00:25:57 2014 New Revision: 272391 URL: https://svnweb.freebsd.org/changeset/base/272391 Log: Add an additional routing table lookup when m->m_pkthdr.fibnum is changed at a PFIL hook in ip{,6}_output(). IPFW setfib rule

svn commit: r272385 - head/sys/net

2014-10-01 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Oct 1 21:24:58 2014 New Revision: 272385 URL: https://svnweb.freebsd.org/changeset/base/272385 Log: Free radix mask entries on main radix destroy. This is temporary commit to be merged to 10. Other approach (like hash table) should be used to store different mas

svn commit: r272361 - in head/sys: net netinet netinet6 netpfil/pf

2014-10-01 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Oct 1 14:39:06 2014 New Revision: 272361 URL: https://svnweb.freebsd.org/changeset/base/272361 Log: Remove lock init from radix.c. Radix has never managed its locking itself. The only consumer using radix with embeded rwlock is system routing table. Move per-AF

svn commit: r272266 - in head/sys/dev: ce cp ctau cx ie

2014-09-28 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Sep 28 19:05:22 2014 New Revision: 272266 URL: http://svnweb.freebsd.org/changeset/base/272266 Log: Convert most BPF_TAP users to BPF_MTAP. MFC after:2 weeks Modified: head/sys/dev/ce/if_ce.c head/sys/dev/cp/if_cp.c head/sys/dev/ctau/if_ct.c head/sys/

svn commit: r272211 - head/sys/net

2014-09-27 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Sep 27 13:57:48 2014 New Revision: 272211 URL: http://svnweb.freebsd.org/changeset/base/272211 Log: Use underlying ports counters to get lagg statistics instead of per-packet accounting. This introduce user-visible changes like aggregating error counters. Revi

svn commit: r272201 - head/sys/netinet

2014-09-27 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Sep 27 07:04:12 2014 New Revision: 272201 URL: http://svnweb.freebsd.org/changeset/base/272201 Log: * Split tcp_signature_compute() into 2 pieces: - tcp_get_sav() - SADB key lookup - tcp_signature_do_compute() - actual computation * Fix TCP signature case for l

Re: svn commit: r271538 - head/sys/net

2014-09-16 Thread Alexander V. Chernikov
On 15.09.2014 14:56, Gleb Smirnoff wrote: > On Sat, Sep 13, 2014 at 06:13:08PM +0000, Alexander V. Chernikov wrote: > A> @@ -1099,15 +1117,39 @@ vlan_transmit(struct ifnet *ifp, struct > A> * Send it, precisely as ether_output() would have. > A> */ > A>er

svn commit: r271691 - head/sys/net

2014-09-16 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Sep 16 21:48:48 2014 New Revision: 271691 URL: http://svnweb.freebsd.org/changeset/base/271691 Log: * Fix if_omcast handling * Convert if_oerrors to pcpu. Suggested by: glebius MFC after:2 weeks Modified: head/sys/net/if_vlan.c Modified: head/sys/net/i

svn commit: r271544 - head/sys/net

2014-09-13 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Sep 13 18:41:24 2014 New Revision: 271544 URL: http://svnweb.freebsd.org/changeset/base/271544 Log: Switch if_vlan(4) to rmlock. MFC after:2 weeks Modified: head/sys/net/if_vlan.c Modified: head/sys/net/if_vlan.c ===

svn commit: r271538 - head/sys/net

2014-09-13 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Sep 13 18:13:08 2014 New Revision: 271538 URL: http://svnweb.freebsd.org/changeset/base/271538 Log: Switch if_vlan(4) to use counter(9) using new if_get_counter api. Modified: head/sys/net/if_vlan.c Modified: head/sys/net/if_vlan.c =

svn commit: r271524 - head/sbin/ifconfig

2014-09-13 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Sep 13 16:04:55 2014 New Revision: 271524 URL: http://svnweb.freebsd.org/changeset/base/271524 Log: Do not try to read i2c info when no transceiver is present. MFC with: r270064 Sponsored by: Yandex LLC Modified: head/sbin/ifconfig/sfp.c Modified: head/s

svn commit: r271509 - head/sys/kern

2014-09-13 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Sep 13 13:46:16 2014 New Revision: 271509 URL: http://svnweb.freebsd.org/changeset/base/271509 Log: Fix error handling in cpuset_setithread() introduced in r267716. Noted by: kib MFC after:1 week Modified: head/sys/kern/kern_cpuset.c Modified: head/s

svn commit: r271014 - head/sbin/ifconfig

2014-09-03 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Sep 3 11:07:49 2014 New Revision: 271014 URL: http://svnweb.freebsd.org/changeset/base/271014 Log: * Unconditionally turn on SIOCGI2C probing for all interfaces on "ifconfig -v". I've seen no measurable timing difference for doing additional SIOCGI2C call

Re: svn commit: r270870 - head/sys/net

2014-08-31 Thread Alexander V. Chernikov
On 31.08.2014 10:46, Gleb Smirnoff wrote: Author: glebius Date: Sun Aug 31 06:46:21 2014 New Revision: 270870 URL: http://svnweb.freebsd.org/changeset/base/270870 Log: o Remove struct if_data from struct ifnet. Now it is merely API structure for route(4) socket and ifmib(4) sysctl. o

svn commit: r270822 - in head: sbin/ifconfig sys/dev/ixgbe sys/net sys/sys

2014-08-29 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Aug 29 18:02:58 2014 New Revision: 270822 URL: http://svnweb.freebsd.org/changeset/base/270822 Log: * Add SIOCGI2C driver ioctl used to retrieve i2c info. * Convert ixgbe to use this ioctl * Convert ifconfig to use generic i2c handler for "ix" interfaces. App

svn commit: r270425 - in head: sbin/ipfw sys/netpfil/ipfw

2014-08-23 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Aug 23 17:57:06 2014 New Revision: 270425 URL: http://svnweb.freebsd.org/changeset/base/270425 Log: Whitespace/style changes merged from projects/ipfw. Modified: head/sbin/ipfw/ipfw2.c head/sys/netpfil/ipfw/ip_fw2.c head/sys/netpfil/ipfw/ip_fw_sockopt.c Modifie

svn commit: r270424 - head/sbin/ipfw

2014-08-23 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Aug 23 17:37:18 2014 New Revision: 270424 URL: http://svnweb.freebsd.org/changeset/base/270424 Log: Merge buffer-printing changes from from projects/ipfw as preparation for branch merge. Requested by: luigi Modified: head/sbin/ipfw/altq.c head/sbin/ipfw/dum

svn commit: r270287 - in head: sbin/ifconfig sys/net

2014-08-21 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Aug 21 17:54:42 2014 New Revision: 270287 URL: http://svnweb.freebsd.org/changeset/base/270287 Log: * Add new net/sff8436.h containing constants used to access QSFP+ data via i2c inteface. These constants has been taken from SFF-8436 "QSFP+ 10 Gbs 4X PLUGGABLE

svn commit: r270129 - head/sbin/ifconfig

2014-08-18 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Aug 18 08:07:50 2014 New Revision: 270129 URL: http://svnweb.freebsd.org/changeset/base/270129 Log: Zero buffer before request. Modified: head/sbin/ifconfig/sfp.c Modified: head/sbin/ifconfig/sfp.c ===

svn commit: r270115 - head/sbin/ifconfig

2014-08-17 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Aug 17 20:06:47 2014 New Revision: 270115 URL: http://svnweb.freebsd.org/changeset/base/270115 Log: Add forgotten DPADD to ifconfig(8). PR: 192760 Submitted by: yaneurabeya at gmail.com MFC after:2 weeks Modified: head/sbin/ifconfig/Makefile

svn commit: r270069 - head/sbin/ifconfig

2014-08-16 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Aug 16 22:55:58 2014 New Revision: 270069 URL: http://svnweb.freebsd.org/changeset/base/270069 Log: Clean up unused definitions. Modified: head/sbin/ifconfig/sfp.c Modified: head/sbin/ifconfig/sfp.c ==

svn commit: r270068 - in head: sbin/ifconfig sys/net

2014-08-16 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Aug 16 21:53:44 2014 New Revision: 270068 URL: http://svnweb.freebsd.org/changeset/base/270068 Log: * Use standard net/sff8472.h header for sff bits and offsets. * Convert sff_8472_id to 'const char *' to please clang. Pointed by: np Modified: head/sbin/ifc

svn commit: r270064 - head/sbin/ifconfig

2014-08-16 Thread Alexander V. Chernikov
Aug 16 19:13:52 2014(r270064) @@ -0,0 +1,543 @@ +/*- + * Copyright (c) 2014 Alexander V. Chernikov. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistribution

Re: svn commit: r267874 - stable/10/lib/libc/net

2014-06-25 Thread Alexander V. Chernikov
On 25.06.2014 21:10, Hajimu UMEMOTO wrote: > Author: ume > Date: Wed Jun 25 17:10:26 2014 > New Revision: 267874 > URL: http://svnweb.freebsd.org/changeset/base/267874 > > Log: > MFC r267616, 267640: > > Retooling addrconfig() to exclude addresses on loopback interfaces > when looking for

svn commit: r267716 - in head/sys: kern sys

2014-06-22 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Jun 22 11:32:23 2014 New Revision: 267716 URL: http://svnweb.freebsd.org/changeset/base/267716 Log: Permit changing cpu mask for cpu set 1 in presence of drivers binding their threads to particular CPU. Changing ithread cpu mask is now performed by special cpuse

svn commit: r267361 - head/sys/net

2014-06-11 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Jun 11 11:27:44 2014 New Revision: 267361 URL: http://svnweb.freebsd.org/changeset/base/267361 Log: Improve logic besides net.bpf.optimize_writers. Direct bpf(4) consumers should now work fine with this tunable turned on. In fact, the only case when optimized_write

svn commit: r266310 - in head: sbin/ipfw sys/netinet sys/netpfil/ipfw

2014-05-17 Thread Alexander V. Chernikov
Author: melifaro Date: Sat May 17 13:45:03 2014 New Revision: 266310 URL: http://svnweb.freebsd.org/changeset/base/266310 Log: Fix wrong formatting of 0.0.0.0/X table records in ipfw(8). Add `flags` u16 field to the hole in ipfw_table_xentry structure. Kernel has been guessing address fam

svn commit: r265782 - head/usr.bin/systat

2014-05-09 Thread Alexander V. Chernikov
Author: melifaro Date: Fri May 9 16:20:55 2014 New Revision: 265782 URL: http://svnweb.freebsd.org/changeset/base/265782 Log: Allow systat(1) interactive dispay-specific commands to be specified via command line. Submitted by: vsevolod MFC after:2 weeks Modified: head/usr.bin/sy

svn commit: r265778 - head/usr.sbin/ndp

2014-05-09 Thread Alexander V. Chernikov
Author: melifaro Date: Fri May 9 14:24:02 2014 New Revision: 265778 URL: http://svnweb.freebsd.org/changeset/base/265778 Log: Fix ndp(8) -f flag parsing PR: bin/136661 Reminded by: Vinicius Zavam MFC after:2 weeks Modified: head/usr.sbin/ndp/ndp.8 head/usr.sbin/ndp/

svn commit: r265717 - in stable/10/sys: net netinet

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 21:03:31 2014 New Revision: 265717 URL: http://svnweb.freebsd.org/changeset/base/265717 Log: Merge 260488, r260508. r260488: Split rt_newaddrmsg_fib() into two different functions. Adding/deleting interface addresses involves access to 3 different

svn commit: r265715 - in stable/9/sys: net netinet

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 20:57:13 2014 New Revision: 265715 URL: http://svnweb.freebsd.org/changeset/base/265715 Log: Merge 260488, r260508. r260488: Split rt_newaddrmsg_fib() into two different functions. Adding/deleting interface addresses involves access to 3 different

svn commit: r265711 - stable/10/sys/net

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 20:41:39 2014 New Revision: 265711 URL: http://svnweb.freebsd.org/changeset/base/265711 Log: Merge r260379, r260460. r260379: Partially fix IPv4 interface routes deletion in RADIX_MPATH. Noticed by: Nikolay Denev r260460: Constanly us

svn commit: r265710 - stable/9/sys/net

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 20:33:47 2014 New Revision: 265710 URL: http://svnweb.freebsd.org/changeset/base/265710 Log: Merge r260379, r260460. r260379: Partially fix IPv4 interface routes deletion in RADIX_MPATH. Noticed by: Nikolay Denev r260460: Constanly us

svn commit: r265708 - stable/10/sys/net

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 20:27:06 2014 New Revision: 265708 URL: http://svnweb.freebsd.org/changeset/base/265708 Log: Merge r259528, r259528, r260295. r259528: Simplify contiguous mask checking. Suggested by: glebius r260228: Remove useless register variable mod

svn commit: r265707 - stable/9/sys/net

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 20:24:13 2014 New Revision: 265707 URL: http://svnweb.freebsd.org/changeset/base/265707 Log: Merge r259528, r259528, r260295. r259528: Simplify contiguous mask checking. Suggested by: glebius r260228: Remove useless register variable mod

svn commit: r265702 - in stable/9: sbin/route usr.bin/netstat

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 19:35:29 2014 New Revision: 265702 URL: http://svnweb.freebsd.org/changeset/base/265702 Log: Merge r260524,r260540 r260524: Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8). r260540: Bump dates in nestat(1) and route(8) man pag

svn commit: r265701 - in stable/10: sbin/route usr.bin/netstat

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 19:35:12 2014 New Revision: 265701 URL: http://svnweb.freebsd.org/changeset/base/265701 Log: Merge r260524,r260540 r260524: Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8). r260540: Bump dates in nestat(1) and route(8) man pag

svn commit: r265700 - in stable/10: sbin/ipfw sys/netpfil/ipfw

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 19:11:41 2014 New Revision: 265700 URL: http://svnweb.freebsd.org/changeset/base/265700 Log: Merge r258708, r258711, r260247, r261117. r258708: Check ipfw table numbers in both user and kernel space before rule addition. Found by: Saychik Pavel

svn commit: r265699 - in stable/9: sbin/ipfw sys/netpfil/ipfw

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 19:11:14 2014 New Revision: 265699 URL: http://svnweb.freebsd.org/changeset/base/265699 Log: Merge r258708, r258711, r260247, r261117. r258708: Check ipfw table numbers in both user and kernel space before rule addition. Found by: Saychik Pavel

svn commit: r265693 - stable/10/sbin/ipfw

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 18:09:32 2014 New Revision: 265693 URL: http://svnweb.freebsd.org/changeset/base/265693 Log: Merge r258677. Fix key lookup in ipfw(8) broken since r232865. Print warning for IPv4 address strings which are valid in inet_aton() but not valid in inet_pton(

svn commit: r265692 - stable/9/sbin/ipfw

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 18:06:44 2014 New Revision: 265692 URL: http://svnweb.freebsd.org/changeset/base/265692 Log: Merge r258677. Fix key lookup in ipfw(8) broken since r232865. Print warning for IPv4 address strings which are valid in inet_aton() but not valid in inet_pton(

svn commit: r265682 - head/sys/net

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 13:54:57 2014 New Revision: 265682 URL: http://svnweb.freebsd.org/changeset/base/265682 Log: Rename rt_msg1() to more handy rtsock_msg_mbuf(). (Just for history purposes: rt_msg2() was renamed to rtsock_msg_buffer() in r265019). Sponsored by: Yandex LL

svn commit: r265666 - in head: sbin/route sys/net

2014-05-08 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 8 11:56:06 2014 New Revision: 265666 URL: http://svnweb.freebsd.org/changeset/base/265666 Log: Fix incorrect netmasks being passed via rtsock. Since radix has been ignoring sa_family in passed sockaddrs, no one ever has bothered filling valid sa_family in n

svn commit: r265288 - head/sys/netinet

2014-05-03 Thread Alexander V. Chernikov
Author: melifaro Date: Sat May 3 20:22:13 2014 New Revision: 265288 URL: http://svnweb.freebsd.org/changeset/base/265288 Log: Fix panic on IPv4 address removal introduced in r265279. Reported by: Trond Endrestøl MFC with: r265279 Modified: head/sys/netinet/in_rmx.c Modified: hea

svn commit: r265283 - head/sys/net

2014-05-03 Thread Alexander V. Chernikov
Author: melifaro Date: Sat May 3 17:57:06 2014 New Revision: 265283 URL: http://svnweb.freebsd.org/changeset/base/265283 Log: Fix sysctl_ifmalist() broken in r265019. Reported by: Olivier Cochard-Labbé MFC with: r265019 Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtso

svn commit: r265280 - head/sys/net

2014-05-03 Thread Alexander V. Chernikov
Author: melifaro Date: Sat May 3 16:38:05 2014 New Revision: 265280 URL: http://svnweb.freebsd.org/changeset/base/265280 Log: Remove additional fib checks from rtalloc1_fib. It looks like current consumers are either unaware of MRT (and uses RT_DEFAULT_FIB implicitly) or know what thay ar

svn commit: r265279 - in head/sys: net netinet netinet6

2014-05-03 Thread Alexander V. Chernikov
Author: melifaro Date: Sat May 3 16:28:54 2014 New Revision: 265279 URL: http://svnweb.freebsd.org/changeset/base/265279 Log: Pass radix head ptr along with rte to rtexpunge(). Rename rtexpunge to rt_expunge(). Modified: head/sys/net/route.c head/sys/net/route.h head/sys/netinet/in_rmx

Re: svn commit: r265232 - head/sys/net

2014-05-02 Thread Alexander V. Chernikov
On 03.05.2014 00:22, Alan Somers wrote: > On Fri, May 2, 2014 at 11:01 AM, Alexander V. Chernikov > wrote: >> On 02.05.2014 20:24, Alan Somers wrote: >>> >>> Author: asomers >>> Date: Fri May 2 16:24:09 2014 >>> New Revision: 265232 >>

Re: svn commit: r265232 - head/sys/net

2014-05-02 Thread Alexander V. Chernikov
On 02.05.2014 20:24, Alan Somers wrote: Author: asomers Date: Fri May 2 16:24:09 2014 New Revision: 265232 URL: http://svnweb.freebsd.org/changeset/base/265232 Log: Fix a panic caused by doing "ifconfig -am" while a lagg is being destroyed. The thread that is destroying the lagg has alrea

svn commit: r265196 - head/sys/net

2014-05-01 Thread Alexander V. Chernikov
Author: melifaro Date: Thu May 1 15:04:32 2014 New Revision: 265196 URL: http://svnweb.freebsd.org/changeset/base/265196 Log: Fix rnh_walktree_from() function (patch from kern/174959). Require valid netmask to be passed since host route is always a leaf. PR: kern/174959 Submi

svn commit: r265104 - head/sys/net

2014-04-29 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 29 19:48:11 2014 New Revision: 265104 URL: http://svnweb.freebsd.org/changeset/base/265104 Log: Partially revert r265019 - allocating 512 bytes on stack can be too much for architectures like ARM. Always use rounded malloc instead. Discussed with: jm

svn commit: r265103 - head/sys/net

2014-04-29 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 29 19:14:42 2014 New Revision: 265103 URL: http://svnweb.freebsd.org/changeset/base/265103 Log: Move rt_setmetrics() from rtsock.c to route.c. All rtsock-initiated rte creation/modification are now performed in route.c holding radix tree write lock. This redu

Re: svn commit: r259638 - head/usr.bin/netstat

2014-04-29 Thread Alexander V. Chernikov
On 29.04.2014 12:35, Olivier Cochard-Labbé wrote: On Fri, Dec 20, 2013 at 1:17 AM, Alexander V. Chernikov mailto:melif...@freebsd.org>> wrote: Author: melifaro Date: Fri Dec 20 00:17:26 2013 New Revision: 259638 URL: http://svnweb.freebsd.org/changeset/base/259638

svn commit: r265096 - head/usr.bin/netstat

2014-04-29 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 29 16:51:28 2014 New Revision: 265096 URL: http://svnweb.freebsd.org/changeset/base/265096 Log: Fix "netstat -gW" behavior broken in r259638. netstat has two options for printing multicast tables: sysctl (the default one for live systems) and kvm-based one (for

Re: svn commit: r264986 - head/sys/net

2014-04-29 Thread Alexander V. Chernikov
On 28.04.2014 12:59, Gleb Smirnoff wrote: On Sat, Apr 26, 2014 at 09:03:41PM +, Alexander V. Chernikov wrote: A> @@ -1425,6 +1431,95 @@ bad: A> #undef ifpaddr A> #undef flags A> A> +#define senderr(e) { error = e; goto bad; } ... A> + if (error != 0) A> +

svn commit: r265091 - head/sys/net

2014-04-29 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 29 12:52:36 2014 New Revision: 265091 URL: http://svnweb.freebsd.org/changeset/base/265091 Log: Do not use senderr() in rtrequest1_fib_change(). Suggested by: glebius MFC after:4 weeks Modified: head/sys/net/route.c Modified: head/sys/net/route.c ===

Re: svn commit: r265019 - head/sys/net

2014-04-27 Thread Alexander V. Chernikov
On 28.04.2014 01:00, Ian Lepore wrote: > On Sun, 2014-04-27 at 17:41 +0000, Alexander V. Chernikov wrote: >> Author: melifaro >> Date: Sun Apr 27 17:41:18 2014 >> New Revision: 265019 >> URL: http://svnweb.freebsd.org/changeset/base/265019 >> >> Log: &

svn commit: r265027 - head/sys/net

2014-04-27 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 27 21:17:54 2014 New Revision: 265027 URL: http://svnweb.freebsd.org/changeset/base/265027 Log: Fix build Found by: ian Pointyhat to: me Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c =

svn commit: r265019 - head/sys/net

2014-04-27 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 27 17:41:18 2014 New Revision: 265019 URL: http://svnweb.freebsd.org/changeset/base/265019 Log: Improve memory allocation model for rt_msg2() rtsock messages: * memory is now allocated as early as possible, without holding locks. * sysctl users are now guaran

svn commit: r265011 - head/sys/net

2014-04-27 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 27 10:43:48 2014 New Revision: 265011 URL: http://svnweb.freebsd.org/changeset/base/265011 Log: Remove useless zeroing of RTAX_DST on error. Cleanup a bit. MFC after:1 month Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c

svn commit: r265010 - head/sys/net

2014-04-27 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 27 10:20:37 2014 New Revision: 265010 URL: http://svnweb.freebsd.org/changeset/base/265010 Log: Cleanup route_output() a bit. MFC after:1 month Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c

svn commit: r265009 - head/sys/net

2014-04-27 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 27 09:49:35 2014 New Revision: 265009 URL: http://svnweb.freebsd.org/changeset/base/265009 Log: Do not delay freeing rtm. Bandaid added in r227061 is not needed since r227061, MFC after:1 month Modified: head/sys/net/rtsock.c Modified: head/sys/net/rt

Re: svn commit: r264987 - head/sys/net

2014-04-26 Thread Alexander V. Chernikov
On 27.04.2014 03:16, Ian Lepore wrote: > On Sat, 2014-04-26 at 22:32 +0000, Alexander V. Chernikov wrote: >> Author: melifaro >> Date: Sat Apr 26 22:32:04 2014 >> New Revision: 264987 >> URL: http://svnweb.freebsd.org/changeset/base/264987 >> >> Log: >>

svn commit: r264998 - head/sys/net

2014-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 27 02:20:09 2014 New Revision: 264998 URL: http://svnweb.freebsd.org/changeset/base/264998 Log: Move up fibnum to ensure it is always defined. Found by: ian MFC with: r264987 Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c ===

svn commit: r264989 - head/sys/net

2014-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 26 22:42:21 2014 New Revision: 264989 URL: http://svnweb.freebsd.org/changeset/base/264989 Log: Remove useless `register' declarations. MFC after:1 month Modified: head/sys/net/route.c Modified: head/sys/net/route.c

svn commit: r264987 - head/sys/net

2014-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 26 22:32:04 2014 New Revision: 264987 URL: http://svnweb.freebsd.org/changeset/base/264987 Log: Determine fibnum once in the beginning of route_output(). MFC after:1 month Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c

svn commit: r264986 - head/sys/net

2014-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 26 21:03:41 2014 New Revision: 264986 URL: http://svnweb.freebsd.org/changeset/base/264986 Log: Decouple RTM_CHANGE from RTM_GET handling in rtsock.c:route_output(). RTM_CHANGE is now handled inside route.c:rtrequest1_fib() as it should be. Note change change h

svn commit: r264976 - head/sys/netinet6

2014-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 26 16:46:33 2014 New Revision: 264976 URL: http://svnweb.freebsd.org/changeset/base/264976 Log: Use "hash" value in rtalloc_mpath_fib() instead of RTF_ANNOUNCE flag. Hashing method is the same as in in6_src.c. (Probably we need better one). MFC after:2 w

svn commit: r264974 - head/usr.sbin/ifmcstat

2014-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 26 16:12:39 2014 New Revision: 264974 URL: http://svnweb.freebsd.org/changeset/base/264974 Log: Remove sa_equal() definition since it is already defined in net/route.h. Noted by: ian MFC after:2 weeks Modified: head/usr.sbin/ifmcstat/ifmcstat.c M

Re: svn commit: r264973 - in head/sys: net netinet6

2014-04-26 Thread Alexander V. Chernikov
On 26.04.2014 20:06, Ian Lepore wrote: On Sat, 2014-04-26 at 14:52 +, Alexander V. Chernikov wrote: Author: melifaro Date: Sat Apr 26 14:52:03 2014 New Revision: 264973 URL: http://svnweb.freebsd.org/changeset/base/264973 Log: Unify sa_equal() macro usage. MFC after: 2 weeks

svn commit: r264973 - in head/sys: net netinet6

2014-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 26 14:52:03 2014 New Revision: 264973 URL: http://svnweb.freebsd.org/changeset/base/264973 Log: Unify sa_equal() macro usage. MFC after:2 weeks Modified: head/sys/net/if.c head/sys/net/route.c head/sys/net/route.h head/sys/net/rtsock.c head/sys/

svn commit: r261847 - head/sys/netinet6

2014-02-13 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Feb 13 19:09:04 2014 New Revision: 261847 URL: http://svnweb.freebsd.org/changeset/base/261847 Log: Further simplify nd6_output_lle. Currently we have 3 usage patterns: 1) nd6_output (most traffic flow, no lle supplied, lle RLOCK sufficient) 2) corner cases for o

svn commit: r261708 - head/sys/netinet6

2014-02-10 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Feb 10 12:52:33 2014 New Revision: 261708 URL: http://svnweb.freebsd.org/changeset/base/261708 Log: Simplify nd6_output_lle: * Check ND6_IFF_IFDISABLED before acquiring any locks * Assume m is always non-NULL * remove 'bad' case not used anymore * Simply if_out

Re: svn commit: r260882 - in head/sys: netinet netinet6

2014-01-27 Thread Alexander V. Chernikov
On 19.01.2014 21:33, Bjoern A. Zeeb wrote: On 19 Jan 2014, at 16:07 , Alexander V. Chernikov wrote: Author: melifaro Date: Sun Jan 19 16:07:27 2014 New Revision: 260882 URL: http://svnweb.freebsd.org/changeset/base/260882 Log: Further rework netinet6 address handling code: * Set ia

svn commit: r261117 - head/sys/netpfil/ipfw

2014-01-24 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Jan 24 09:13:30 2014 New Revision: 261117 URL: http://svnweb.freebsd.org/changeset/base/261117 Log: Reorder struct ip_fw_chain: * move rarely-used fields down * move uh_lock to different cacheline * remove some usused fields Sponsored by: Yandex LLC Modifie

svn commit: r260882 - in head/sys: netinet netinet6

2014-01-19 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Jan 19 16:07:27 2014 New Revision: 260882 URL: http://svnweb.freebsd.org/changeset/base/260882 Log: Further rework netinet6 address handling code: * Set ia address/mask values BEFORE attaching to address lists. Inet6 address assignment is not atomic, so the simples

svn commit: r260870 - in head/sys: net ofed/drivers/infiniband/ulp/ipoib

2014-01-18 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 18 23:24:51 2014 New Revision: 260870 URL: http://svnweb.freebsd.org/changeset/base/260870 Log: Simplify filling sockaddr_dl structure for if_resolvemulti() callback providers. link_init_sdl() function can be used to fill most of the parameters. Use caller stac

svn commit: r260861 - head/sys/netinet6

2014-01-18 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 18 20:54:55 2014 New Revision: 260861 URL: http://svnweb.freebsd.org/changeset/base/260861 Log: Use in6_localip() instead of hand-rolled cycle. MFC after:2 weeks Modified: head/sys/netinet6/nd6_rtr.c Modified: head/sys/netinet6/nd6_rtr.c ==

svn commit: r260860 - head/sys/netinet6

2014-01-18 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 18 20:32:59 2014 New Revision: 260860 URL: http://svnweb.freebsd.org/changeset/base/260860 Log: Add in6_prepare_ifra() function to ease preparing in-kernel IPv6 address requests. MFC after:2 weeks Modified: head/sys/netinet6/in6.c head/sys/netinet6/

svn commit: r260852 - head/sys/netinet6

2014-01-18 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 18 15:57:43 2014 New Revision: 260852 URL: http://svnweb.freebsd.org/changeset/base/260852 Log: Do some style(9) not done in r260851 to improve readability. MFC after:2 weeks Modified: head/sys/netinet6/in6.c Modified: head/sys/netinet6/in6.c =

svn commit: r260851 - head/sys/netinet6

2014-01-18 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 18 15:52:52 2014 New Revision: 260851 URL: http://svnweb.freebsd.org/changeset/base/260851 Log: Split in6_update_ifa() into smaller pieces leaving functionality intact. Discussed with: ae MFC after:2 weeks Modified: head/sys/netinet6/in6.c Modi

Re: svn commit: r260702 - head/sys/netinet

2014-01-17 Thread Alexander V. Chernikov
On 16.01.2014 22:04, John-Mark Gurney wrote: > Alexander V. Chernikov wrote this message on Thu, Jan 16, 2014 at 11:50 +: >> Author: melifaro >> Date: Thu Jan 16 11:50:00 2014 >> New Revision: 260702 >> URL: http://svnweb.freebsd.org/changeset/base/260702 >> &

svn commit: r260707 - head/sys/netinet

2014-01-16 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 16 12:35:18 2014 New Revision: 260707 URL: http://svnweb.freebsd.org/changeset/base/260707 Log: Fix refcount leak on netinet ifa. Reviewed by: glebius MFC after:2 weeks Sponsored by: Yandex LLC Modified: head/sys/netinet/in.c Modified: head/sys/ne

svn commit: r260702 - head/sys/netinet

2014-01-16 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 16 11:50:00 2014 New Revision: 260702 URL: http://svnweb.freebsd.org/changeset/base/260702 Log: Fix ipfw fwd for IPv4 traffic broken by r249894. Problem case: Original lookup returns route with GW set, so gw points to rte->rt_gateway. After that we're ch

svn commit: r260551 - head/sys/netpfil/ipfw

2014-01-11 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 11 18:27:34 2014 New Revision: 260551 URL: http://svnweb.freebsd.org/changeset/base/260551 Log: Revert r260548. We really should not use IPFW_WLOCK() here but this requires some more playing with IPFW_UH_WLOCK(). Leave till later. Modified: head/sys/netpfil/ip

svn commit: r260548 - head/sys/netpfil/ipfw

2014-01-11 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 11 16:50:41 2014 New Revision: 260548 URL: http://svnweb.freebsd.org/changeset/base/260548 Log: We don't need chain write lock since we're not modifying its contents. LibAliasSetAddress() uses its own mutex to serialize changes. While here, convert ifp->if_x

svn commit: r260540 - in head: sbin/route usr.bin/netstat

2014-01-11 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Jan 11 09:44:00 2014 New Revision: 260540 URL: http://svnweb.freebsd.org/changeset/base/260540 Log: Bump dates in nestat(1) and route(8) man pages. Fix several small errors introduced by r260524. Suggested by: glebius MFC after:2 weeks Modified: head/sb

svn commit: r260524 - in head: sbin/route usr.bin/netstat

2014-01-10 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Jan 10 23:08:18 2014 New Revision: 260524 URL: http://svnweb.freebsd.org/changeset/base/260524 Log: Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8). MFC after:2 weeks Modified: head/sbin/route/keywords head/sbin/route/route.8 head/sbin

Re: svn commit: r260488 - head/sys/net

2014-01-10 Thread Alexander V. Chernikov
On 10.01.2014 14:14, Gleb Smirnoff wrote: Alexander, some nitpicking: On Thu, Jan 09, 2014 at 06:13:25PM +, Alexander V. Chernikov wrote: A> @@ -52,6 +53,7 @@ A> #include A> #include A> #include A> +#include A> A> #include A> #include A> @@

svn commit: r260508 - in head/sys: net netinet

2014-01-10 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Jan 10 12:13:55 2014 New Revision: 260508 URL: http://svnweb.freebsd.org/changeset/base/260508 Log: Simplify inet alias handling code: if we're adding/removing alias which has the same prefix as some other alias on the same interface, use newly-added rt_addrmsg() i

svn commit: r260488 - head/sys/net

2014-01-09 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 9 18:13:25 2014 New Revision: 260488 URL: http://svnweb.freebsd.org/changeset/base/260488 Log: Split rt_newaddrmsg_fib() into two different functions. Adding/deleting interface addresses involves access to 3 different subsystems, int different parts of code. E

svn commit: r260472 - head/sbin/route

2014-01-09 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 9 10:40:36 2014 New Revision: 260472 URL: http://svnweb.freebsd.org/changeset/base/260472 Log: Do some more sanity checks in route(8): require netmask to have the same address family as destination. Found by: jmg MFC after:2 weeks Modified: hea

svn commit: r260460 - head/sys/net

2014-01-08 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Jan 8 23:09:02 2014 New Revision: 260460 URL: http://svnweb.freebsd.org/changeset/base/260460 Log: Constanly use RT_ALL_FIBS everywhere instead of -1. MFC after:2 weeks Modified: head/sys/net/route.c head/sys/net/route.h head/sys/net/rtsock.c Modified

svn commit: r260458 - head/sys/netinet6

2014-01-08 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Jan 8 22:13:32 2014 New Revision: 260458 URL: http://svnweb.freebsd.org/changeset/base/260458 Log: Introduce IN6_MASK_ADDR() macro to unify various hand-rolled code to do IPv6 addr & mask in different places. MFC after:2 weeks Modified: head/sys/netinet6

<    1   2   3   4   5   6   7   >