netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2 v2 0/2] tc class names: Ignore if default file does not exist
@ 2015-03-17 20:15 Vadim Kochan
  2015-03-17 20:15 ` [PATCH iproute2 v2 1/2] lib names: Split to db_names_alloc and db_names_load Vadim Kochan
  2015-03-17 20:15 ` [PATCH iproute2 v2 2/2] tc class: Ignore if default class name file does not exist Vadim Kochan
  0 siblings, 2 replies; 4+ messages in thread
From: Vadim Kochan @ 2015-03-17 20:15 UTC (permalink / raw)
  To: netdev; +Cc: Vadim Kochan

1) Split lib/names.c:db_names_alloc to 2 funcs for
    allocate and load names from file. Also added checking for malloc
    failing.

2) Ignore if default class names file does not exist if '-nm' option
    was specified, so it will be possible to create alias:

        alias tc='tc -nm'

    Changed default class name file cls_names -> tc_cls.

v2:
    Get rid of pointless 'ret' initialization
    in tc/tc_util.c - noticed by Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Vadim Kochan (2):
  lib names: Split to db_names_alloc and db_names_load
  tc class: Ignore if default class name file does not exist

 include/names.h |  3 ++-
 lib/names.c     | 59 +++++++++++++++++++++++++++++++++++++++++----------------
 tc/tc_util.c    | 19 +++++++++++++++----
 3 files changed, 60 insertions(+), 21 deletions(-)

-- 
2.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-24 21:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 20:15 [PATCH iproute2 v2 0/2] tc class names: Ignore if default file does not exist Vadim Kochan
2015-03-17 20:15 ` [PATCH iproute2 v2 1/2] lib names: Split to db_names_alloc and db_names_load Vadim Kochan
2015-03-24 21:58   ` Stephen Hemminger
2015-03-17 20:15 ` [PATCH iproute2 v2 2/2] tc class: Ignore if default class name file does not exist Vadim Kochan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).