From patchwork Sun Sep 25 14:08:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hadar Hen Zion X-Patchwork-Id: 674615 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3shpqp11qWz9s9x for ; Mon, 26 Sep 2016 00:09:10 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938905AbcIYOJG (ORCPT ); Sun, 25 Sep 2016 10:09:06 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:49154 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934881AbcIYOJF (ORCPT ); Sun, 25 Sep 2016 10:09:05 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from hadarh@mellanox.com) with ESMTPS (AES256-SHA encrypted); 25 Sep 2016 17:09:02 +0300 Received: from mth-vdi-60.mth.labs.mlnx (mth-vdi-60.mth.labs.mlnx [10.197.1.160]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id u8PE91Ug026527; Sun, 25 Sep 2016 17:09:01 +0300 From: Hadar Hen Zion To: "David S. Miller" Cc: netdev@vger.kernel.org, Jamal Hadi Salim , Cong Wang , Or Gerlitz , Hadar Hen Zion Subject: [PATCH net-next] net/sched: pkt_cls: change tc actions order to be as the user sets Date: Sun, 25 Sep 2016 17:08:44 +0300 Message-Id: <1474812524-29089-1-git-send-email-hadarh@mellanox.com> X-Mailer: git-send-email 1.7.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Currently the created tc actions list is reversed against the order set by the user. Change the actions list order to be the same as was set by the user. Signed-off-by: Hadar Hen Zion Acked-by: Jamal Hadi Salim --- include/net/pkt_cls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 5ccaa4b..767b03a 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -123,7 +123,7 @@ static inline void tcf_exts_to_list(const struct tcf_exts *exts, for (i = 0; i < exts->nr_actions; i++) { struct tc_action *a = exts->actions[i]; - list_add(&a->list, actions); + list_add_tail(&a->list, actions); } #endif }