]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5e: push cls_flower and mqprio setup_tc processing into separate functions
authorJiri Pirko <jiri@mellanox.com>
Mon, 7 Aug 2017 08:15:22 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 16:42:36 +0000 (09:42 -0700)
commita1b10bf936f7d94d3c5630749a8b62ba8ec476ae
tree08ac297613a16a3aeab5a233d037354356c8cb05
parent84bbf5ce303b1bedf33e18820dcedd57884f6bc1
mlx5e: push cls_flower and mqprio setup_tc processing into separate functions

Let mlx5e_setup_tc (former mlx5e_ndo_setup_tc) be a splitter for specific
setup_tc types and push out cls_flower and mqprio specific codes into
separate functions. Also change the return values so they are the same
as in the rest of the drivers.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c