From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id E92D63256 for ; Thu, 11 Jan 2018 10:16:36 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id 141so3946762wme.3 for ; Thu, 11 Jan 2018 01:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=kMSYKhpFyk0SvYhhN0h6Y/5zaAFTW0rJ5ntGi0c8VNQ=; b=v9+A5TGPCQpM4Ji87YVwWMSWwD9cYItHZM2yD4IoSDPsnVJQouwFywfEHuxsvb2bPb PB+JuHSvf2jyFtKwJbuN3gCb6Diqn3HDuBHLzdUl7QoEF1LU9WzIdAJfJsgaCFEiwnk+ dBABHspcAs1tL7WbO+cvWrqUtqkJ80VxRS2sp4ImDngzR58t0Yja++PTN/Ji9W1bEyz9 7nB8u57KVzT1cWKUAUebXIpKZdEpposT7lccPieaAZb9/3ChJS4BgGOeq1cv9KKof2aa xDXGy+rxJKZFQO24nDi990EspLA/p3iQ8JpRXchyHZS41pQPcfeXMbxw2O/1fpm3IDGB o/3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kMSYKhpFyk0SvYhhN0h6Y/5zaAFTW0rJ5ntGi0c8VNQ=; b=N1eyQqwwOZpbKyPOkSk9AVhJdS0sQKbSs/8DYiBzz+kSqXvhRIV1l5MC5IFSKbcRD+ cG5AWGi0UrqgVDifjN+KZadCR5+tNm4uu8te4lf1cl605KuFH/+KYtc+kE/7uPHZhREV PJR/UM1srqQcNM9LXVXTiRljTsVrVUaAcinic0jB9TQJ5+ThjUoVie46qrHFTvtVyMSK igExZdci+Ay8+g4Po47i4mi/ApY6wHm7wfYMmeOSkYltAZUPV9csDLCPdpSs+LFpfjgC 1zPqyM07mimlY7WnohUiOr+exqAizYq3wAghuAfqE553LW9RDPeWBJFuWhoQ9KndRR6s evbg== X-Gm-Message-State: AKGB3mJumk/WMXZKTYmoHl5c9tK2lX2i+qo6WsWQ5dtubT0aK/3xvUsN oxqReYxD5dj3M8Ab/sPGEBfL3hfjtQ== X-Google-Smtp-Source: ACJfBoudgR88zjy76TtoraLwTSPM3A7sFeXRkAzocRktBHe7MA3zmuC9LmuUihjMs8847ypbdlvafw== X-Received: by 10.80.184.25 with SMTP id j25mr30172657ede.5.1515662196355; Thu, 11 Jan 2018 01:16:36 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id k19sm11209436ede.35.2018.01.11.01.16.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2018 01:16:35 -0800 (PST) From: Nelio Laranjeiro To: dev@dpdk.org, Olivier Matz Cc: borisp@mellanox.com Date: Thu, 11 Jan 2018 10:15:58 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 1/2] net: fix ESP header byte ordering definition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 09:16:37 -0000 ESP header is defined in the RFC2406 [1] as Big Endian fields it should use the corresponding types in DPDK as well. Fixes: d4b684f7197a ("net: add ESP header to generic flow steering") Cc: borisp@mellanox.com Signed-off-by: Nelio Laranjeiro [1] https://tools.ietf.org/html/rfc2406 --- lib/librte_net/rte_esp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_net/rte_esp.h b/lib/librte_net/rte_esp.h index e228af092..148c06e09 100644 --- a/lib/librte_net/rte_esp.h +++ b/lib/librte_net/rte_esp.h @@ -49,8 +49,8 @@ extern "C" { * ESP Header */ struct esp_hdr { - uint32_t spi; /**< Security Parameters Index */ - uint32_t seq; /**< packet sequence number */ + rte_be32_t spi; /**< Security Parameters Index */ + rte_be32_t seq; /**< packet sequence number */ } __attribute__((__packed__)); #ifdef __cplusplus -- 2.11.0