On Mon, Oct 30, 2017 at 11:07 AM, Roman Mashak <m...@mojatatu.com> wrote: > Cong Wang <xiyou.wangc...@gmail.com> writes: > >> On Sat, Oct 28, 2017 at 8:36 PM, Roman Mashak <m...@mojatatu.com> wrote: >>> Cong Wang <xiyou.wangc...@gmail.com> writes: >> >> Hmm, I thought you use RTM_NEWQDISC+RTM_DELQDISC to >> determine it is replacement, no? > > Create is RTM_NEWQDISC and NLM_F_EXCL|NLM_F_CREATE, replacement is > RTM_NEWQDISC and NLM_F_REPLACE in netlink flags.
Is there any reason we can't use RTM_NEWQDISC+RTM_DELQDISC rather than NLM_F_REPLACE to determine it is replacement? Note, RTM_NEWQDISC+RTM_DELQDISC are put in a same message not two.