Page MenuHomeFreeBSD

glebius (Gleb Smirnoff)
User

Projects (6)

User Details

User Since
May 28 2014, 2:27 PM (613 w, 17 h)

Recent Activity

Today

glebius added a comment to D55031: netinet6: Pass IPv4-mapped ASM multicast joins/leaves to netinet..

Do you plan to rebase that over removal of IFP_TO_IA() in preference to in_ifprimaryaddr()?

Thu, Feb 26, 3:46 AM
glebius accepted D55345: netinet: Use in_ifprimaryaddr() in place of IFP_TO_IA()..
Thu, Feb 26, 3:40 AM
glebius added a comment to D55344: netinet: Promote IFP_TO_IA() from macro to function in_ifprimaryaddr()..

P.S. I would suggest to retitle to netinet: introduce in_ifprimaryaddr() to lookup first IPv4 address of an ifnet. IMHO, there is not reason to reference a macro that is about to go away.

Thu, Feb 26, 3:40 AM
glebius accepted D55344: netinet: Promote IFP_TO_IA() from macro to function in_ifprimaryaddr()..
Thu, Feb 26, 3:38 AM
glebius added a comment to D55382: netinet6: Document IPv4-mapped extension to IPV6_JOIN_GROUP et al..

I added some suggestion, but they are IMHOs. I'd suggest to wait for approval from a doc committer. @ziaee maybe you?

Thu, Feb 26, 3:35 AM
glebius accepted D55387: ip6_input: remove unused IPv4-compatible IPv6 checking.
Thu, Feb 26, 3:27 AM
glebius accepted D55444: route: Fix -expire argument when using netlink.
Thu, Feb 26, 3:19 AM
glebius accepted D55440: netlink: Fix expire column in -r flag using netlink.
Thu, Feb 26, 3:18 AM
glebius accepted D55514: route(8): show expire time of each nexthop in monitor.
Thu, Feb 26, 3:14 AM
glebius accepted D55442: rtnetlink: Add support for nexthop expiration in new route.
Thu, Feb 26, 3:14 AM
glebius planned changes to D48709: sockets: refactor solisten() and pr_listen.

Are you still working on this? @glebius
if that's the case, Could you please set the planned change state for this revision?

Thu, Feb 26, 3:10 AM

Yesterday

glebius added inline comments to D55338: tcp: add support for TCP_RST_REASON_CODE socket option.
Wed, Feb 25, 9:24 PM
glebius added inline comments to D55338: tcp: add support for TCP_RST_REASON_CODE socket option.
Wed, Feb 25, 9:14 PM
glebius added inline comments to D55338: tcp: add support for TCP_RST_REASON_CODE socket option.
Wed, Feb 25, 7:07 PM

Fri, Feb 20

glebius accepted D55410: tcp: improve validation of received TCP over UDP packets.
Fri, Feb 20, 9:06 PM
glebius added a comment to D55410: tcp: improve validation of received TCP over UDP packets.

I'd suggest to change to title to explictily say "TCP over UDP", cause "TCP/UDP" can be misinterpreted to a change to TCP and a similar change to UDP.

Fri, Feb 20, 9:05 PM

Thu, Feb 19

glebius committed rG38edf96b1787: tests/ipfw: fix log:bpf test flakyness (authored by glebius).
tests/ipfw: fix log:bpf test flakyness
Thu, Feb 19, 2:55 AM

Wed, Feb 18

glebius accepted D55345: netinet: Use in_ifprimaryaddr() in place of IFP_TO_IA()..

LGTM module suggestions made in D55344.

Wed, Feb 18, 7:35 PM
glebius added inline comments to D55344: netinet: Promote IFP_TO_IA() from macro to function in_ifprimaryaddr()..
Wed, Feb 18, 7:33 PM

Tue, Feb 17

glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

I agree that not much left of ifcreate_nl() and it can be inlined into ifgeneve.c.

Tue, Feb 17, 9:13 PM

Mon, Feb 16

glebius committed rG11c1b69885be: netlink: force uninline of nl_receive_message() (authored by glebius).
netlink: force uninline of nl_receive_message()
Mon, Feb 16, 11:41 PM
glebius added a comment to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).

The ndq_refcount seems to be not really used. Could it be you wanted to use to to have the callout to refcount the ndq?

Mon, Feb 16, 11:07 PM
glebius updated subscribers of D55316: witness: report a thread that can't sleep in WITNESS_WARN.
Mon, Feb 16, 10:56 PM
glebius added a comment to D55316: witness: report a thread that can't sleep in WITNESS_WARN.

Immediately caught in bridge(4):

NET_EPOCH_ENTER(et);
Mon, Feb 16, 10:56 PM
glebius requested review of D55316: witness: report a thread that can't sleep in WITNESS_WARN.
Mon, Feb 16, 10:55 PM
glebius added inline comments to D55174: ifconfig: Add netlink helper to create interface.
Mon, Feb 16, 10:23 PM

Sun, Feb 15

glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Sun, Feb 15, 8:48 PM
glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

Sorry for making the Geneve check-in process longer, but I really want to understand all corner cases, instead of workarounding them.

Sun, Feb 15, 8:32 PM
glebius added a reviewer for D55174: ifconfig: Add netlink helper to create interface: melifaro.
Sun, Feb 15, 8:26 PM
glebius accepted D54382: MFC sys/netinet6: Implement RFC 7217 (private stable addresses).

No objection for MFC. Neither encouragement, though :)

Sun, Feb 15, 8:23 PM

Fri, Feb 13

glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Fri, Feb 13, 10:14 PM
glebius accepted D53516: Update ip_ecn to RFC 6040.

Not an expert in the area, but code wise LGTM.

Fri, Feb 13, 10:04 PM
glebius accepted D55260: ipfilter: Avoid negative array indicies.
Fri, Feb 13, 10:00 PM
glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

After running my tests for this change, I remembered that
the netlink can reply with an NLMSG_ERROR containing error = 0.

Fri, Feb 13, 9:59 PM
glebius accepted D55233: netinet6: Return EAFNOSUPPORT for non-IPv6 addresses in mcast sockopts..
Fri, Feb 13, 9:55 PM
glebius added a comment to D55267: ndp: Simplify and breakdown nd6_ra_input().

I'd suggest to commit all comments and whitespace changes that can be committed without breaking down nd6_ra_input() separately. That will make meaningful diff smaller. btw, it is great putting references to RFC before important actions and checks!

Fri, Feb 13, 9:50 PM
glebius accepted D55266: multicast(4): Fix disabling multicast forwarding.
Fri, Feb 13, 9:42 PM
glebius committed rG596bf3485fe5: bpf: don't call bpf_detachd() in bpf_setdlt() (authored by glebius).
bpf: don't call bpf_detachd() in bpf_setdlt()
Fri, Feb 13, 7:40 PM

Thu, Feb 12

glebius accepted D55236: ip_mroute: Make the routing socket private.
Thu, Feb 12, 12:37 AM
glebius accepted D55247: rpc: Improve socket locking in svc_vc_accept().
Thu, Feb 12, 12:33 AM
glebius added a comment to D55247: rpc: Improve socket locking in svc_vc_accept().

Sorry, missed the if (nbio == 0)

Thu, Feb 12, 12:32 AM
glebius added inline comments to D55247: rpc: Improve socket locking in svc_vc_accept().
Thu, Feb 12, 12:31 AM
glebius added a comment to D54382: MFC sys/netinet6: Implement RFC 7217 (private stable addresses).

Can you please rebase? There is no longer ND_IFINFO().

Thu, Feb 12, 12:11 AM
glebius accepted D55072: Remove -fms-extensions throughout the tree.
Thu, Feb 12, 12:08 AM
glebius added a comment to D55174: ifconfig: Add netlink helper to create interface.

Also (NETLINK) isn't a great error message at all. Please try grep errx sbin/ifconfig/*.c to check other error messages. Maybe just only contents of errmsg.error_str in the case it was provided and unknown error from netlink(4) in case it was not?

Thu, Feb 12, 12:04 AM
glebius accepted D55174: ifconfig: Add netlink helper to create interface.
Thu, Feb 12, 12:01 AM

Fri, Feb 6

glebius committed rGf5923578eb67: sockets: repair sctp_peeloff(2) (authored by glebius).
sockets: repair sctp_peeloff(2)
Fri, Feb 6, 6:54 PM
glebius resigned from D55138: Switch net.inet6.ip6.use_stableaddr to on by default.

No objections from me, I rather agree. But I am not enough expert in IPv6 to make a strong judgement on defaults change.

Fri, Feb 6, 6:11 PM
glebius accepted D55136: Fix style issues in code I committed to support RFC 7217.
Fri, Feb 6, 6:07 PM

Thu, Feb 5

glebius accepted D54443: if_gre: Add netlink support with tests.
Thu, Feb 5, 5:36 PM
glebius accepted D55124: lagg: Remove the member pr_num from struct lagg_proto.
Thu, Feb 5, 5:35 PM
glebius accepted D55123: lagg: Makes the none protocol a first-class citizen.
Thu, Feb 5, 5:34 PM

Wed, Feb 4

glebius updated the summary of D55094: loader.efi: try all ZFS pools found by efi_zfs_probe().
Wed, Feb 4, 10:28 PM
glebius updated the diff for D55094: loader.efi: try all ZFS pools found by efi_zfs_probe().

Merge this original diff + Warner's D55107 together.

Wed, Feb 4, 10:28 PM
glebius closed D55064: bpf: don't clear pointer from descriptor to the tap on descriptor close.
Wed, Feb 4, 10:08 PM
glebius committed rG5937e1cdc991: bpf: don't clear pointer from descriptor to the tap on descriptor close (authored by glebius).
bpf: don't clear pointer from descriptor to the tap on descriptor close
Wed, Feb 4, 10:08 PM
glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Wed, Feb 4, 8:26 PM
glebius added inline comments to D55107: stand/efi: Allow RELAXED or STRICT boot policies.
Wed, Feb 4, 8:21 PM
glebius added inline comments to D55107: stand/efi: Allow RELAXED or STRICT boot policies.
Wed, Feb 4, 8:13 PM
glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Wed, Feb 4, 5:31 PM
glebius added inline comments to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).
Wed, Feb 4, 5:30 PM
glebius added a comment to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).

Sorry, I didn't ask to de-virtualize the queue, only the lock. I actually asked why can't we hang off the queue from the in6_ifaddr instead of making it global? btw, how many queue entries per unique address could be there?

Wed, Feb 4, 5:25 PM
glebius accepted D54443: if_gre: Add netlink support with tests.

Approved, but please address comment in the module event switch statement.

Wed, Feb 4, 5:16 PM
glebius accepted D55099: ifconfig: fix gre(4) status.

Please consider all trivial MFCs approved.

Wed, Feb 4, 5:11 PM
glebius added a comment to D55090: hdb_add_current_keys_to_history: pass correct `size` to calloc.

I can't understand the problem. If structure is known sizeof(*ext) results in the same value as sizeof(struct HDB_extension). If the structure is not known and has only forward declaration, compilation should fail with: invalid application of 'sizeof' to an incomplete type.

Wed, Feb 4, 5:09 PM
glebius added a comment to D32914: Add net.inet.ip.source_address_validation.

For such a test you'd better move one of the interfaces into VIMAGE jail. This will isolate not only from this particular problem, but from other potential problems.

Wed, Feb 4, 4:33 PM
glebius added a comment to D55094: loader.efi: try all ZFS pools found by efi_zfs_probe().

What about ordering the zfsinfo? If (pd->pd_handle == boot_img->DeviceHandle) add entry to head, otherwise add it to the tail.

Wed, Feb 4, 4:28 PM
glebius requested review of D55094: loader.efi: try all ZFS pools found by efi_zfs_probe().
Wed, Feb 4, 2:15 AM

Tue, Feb 3

glebius committed rG64f7e3c9c178: sockets: let protocols be responsible for socket buffer mutexes (authored by glebius).
sockets: let protocols be responsible for socket buffer mutexes
Tue, Feb 3, 5:10 PM
glebius closed D54984: sockets: let protocols be responsible for socket buffer mutexes.
Tue, Feb 3, 5:10 PM
glebius added a comment to D55064: bpf: don't clear pointer from descriptor to the tap on descriptor close.

Is bpf_chkdir() dereferencing a NULL d->bd_bif in net epoch ?

Tue, Feb 3, 5:07 PM

Mon, Feb 2

glebius added a comment to D54986: sys/conf: enable -fms-extensions for the kernel.

and if they do I believe they deserve to go on a treasure hunt

Mon, Feb 2, 10:10 PM
glebius requested review of D55064: bpf: don't clear pointer from descriptor to the tap on descriptor close.
Mon, Feb 2, 10:00 PM
glebius added a comment to D55061: netgraph/ksocket tests: Bind to IN6ADDR_LOOPBACK.

Oops, sorry. If the reviews.freebsd.org mailbox was open in mutt while I was fixing the test, then I would not jump in front of you.

Mon, Feb 2, 8:37 PM
glebius committed rG32c3723f0655: tests/netgraph: fix tests that depended on connect(in6addr_any) (authored by glebius).
tests/netgraph: fix tests that depended on connect(in6addr_any)
Mon, Feb 2, 8:16 PM
glebius added a comment to D54986: sys/conf: enable -fms-extensions for the kernel.

Oh, sorry for that. Let it be then -fms-extensions until -fms-anonymous-structs hits our version of clang. But for the files that need it.

Mon, Feb 2, 7:13 PM
glebius added a comment to D54986: sys/conf: enable -fms-extensions for the kernel.

First, let's talk about -fms-anonymous-structs then instead of -fms-extensions, cause the latter enables much more. Second, please don't use the fact that I added this flag back in 2015 for gcc as an argument. Gcc is our second tier compiler and back then this change was the least intrusive hack to allow us to go forward with C11 feature and still be compilable by back-then version of gcc. Actually, I should look if this change can be reverted today. Finally, the list of files you provided doesn't look scary to me. It is 12 modules out of more than 500.

Mon, Feb 2, 6:09 PM
glebius accepted D55059: ip6_mroute: Deindent some code in ip6_mdq().
Mon, Feb 2, 5:47 PM
glebius accepted D55058: ip_mroute: Try to make function pointer declarations more consistent.
Mon, Feb 2, 5:47 PM
glebius accepted D55057: ip_mroute: Use a local variable to store a VIF pointer.
Mon, Feb 2, 5:45 PM
glebius added a comment to D54986: sys/conf: enable -fms-extensions for the kernel.
In D54986#1258395, @bz wrote:
struct _bar {
        int x;
};

struct foo {
        struct _bar;
        int y;
};

struct foo.x = 17;

That's pretty evil! I don't think we should encourage that around the kernel. C11 anonymous unions & structs don't leave any space for ambiguity, they do quite the opposite. This extension looks pretty scary, as I may have x in bar and in baz, and then make both baz and bar member of foo.

that just fails with error: duplicate member 'x'

But it's funny given jhb in an email thread pointed out that it was you moving this globally enabled in the kernel for gcc in cc4a90c445aa04be36c3ef745cbe67fa339b94b5 . I don't think that commit did what you thought it would back then.

Mon, Feb 2, 5:36 PM
glebius added a comment to D54986: sys/conf: enable -fms-extensions for the kernel.
struct _bar {
        int x;
};
Mon, Feb 2, 5:04 PM
glebius added inline comments to D54443: if_gre: Add netlink support with tests.
Mon, Feb 2, 4:12 AM
glebius added a comment to D55015: ndp: Add support for Gratuitous Neighbor Discovery (GRAND).

I can't understand why do we need the global (pre-vnet) list. Can the queue just hang off the in6_ifaddr?

Mon, Feb 2, 4:09 AM
glebius accepted D52980: Update bcmp(3) manpage to following the Posix Standard.
Mon, Feb 2, 4:01 AM
glebius added a comment to D55031: netinet6: Pass IPv4-mapped ASM multicast joins/leaves to netinet..

Bruce, very glad to see you back!!!

Mon, Feb 2, 2:38 AM
glebius accepted D55032: socket.2: Cross-reference netintro(4).
Mon, Feb 2, 2:11 AM · manpages

Sat, Jan 31

glebius added inline comments to D54984: sockets: let protocols be responsible for socket buffer mutexes.
Sat, Jan 31, 5:20 PM
glebius updated the diff for D54984: sockets: let protocols be responsible for socket buffer mutexes.
  • Use rcvmtxopts as Mark suggests.
Sat, Jan 31, 5:17 PM

Fri, Jan 30

glebius accepted D54982: ip_mroute: Make privilege checking more consistent.
Fri, Jan 30, 9:41 PM
glebius accepted D54983: ip6_mroute: Make MF6CFIND a regular function.
Fri, Jan 30, 9:38 PM
glebius added a comment to D54948: bridge: Add checksum offloading.
Fri, Jan 30, 9:35 PM
glebius committed rG9df110b11f2d: tests/netinet: fix tests that depended on connect(in6addr_any) (authored by glebius).
tests/netinet: fix tests that depended on connect(in6addr_any)
Fri, Jan 30, 9:32 PM
glebius requested review of D54984: sockets: let protocols be responsible for socket buffer mutexes.
Fri, Jan 30, 9:23 PM
glebius added a comment to D54948: bridge: Add checksum offloading.

Might be off-topic. I have ever had an idea, that introducing SOFT checksum offload to all soft interfaces. The upper stack will see this and hand over the calculating of the checksums to the interfaces. The soft interfaces may calculate the checksums when absolutely necessary, or let the edge physical interfaces do the stuff when the packets are leaving the host. Then we can benefits the hardware checksum, or we have better icache locality ( batch processing the mbufs ) when doing soft checksum.

What do you think ?

Fri, Jan 30, 8:45 PM
glebius accepted D54941: rpc: correct resultproc_t's type.
Fri, Jan 30, 8:41 PM
glebius accepted D54940: clnt_broadcast(3): fix eachresult argument type.
Fri, Jan 30, 8:40 PM

Thu, Jan 29

glebius added a comment to D54940: clnt_broadcast(3): fix eachresult argument type.

Question on naming. I would read "resultproc" as "result process". What does "resultprot" stands for?

Thu, Jan 29, 5:06 PM
glebius accepted D54939: clnt_broadcast(3): don't free function pointers.
Thu, Jan 29, 5:05 PM
glebius added a reviewer for D54939: clnt_broadcast(3): don't free function pointers: jhb.
Thu, Jan 29, 4:57 PM