From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 076B21B3F0; Wed, 9 Jan 2019 12:05:25 +0100 (CET) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 0BD83780055; Wed, 9 Jan 2019 11:05:24 +0000 (UTC) Received: from ocex03.SolarFlarecom.com (10.20.40.36) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 9 Jan 2019 03:05:21 -0800 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Wed, 9 Jan 2019 03:05:20 -0800 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id x09B5JGL026956; Wed, 9 Jan 2019 11:05:19 GMT Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id BFB2F1616EF; Wed, 9 Jan 2019 11:05:19 +0000 (GMT) From: Andrew Rybchenko To: CC: Ivan Malov , Date: Wed, 9 Jan 2019 11:05:13 +0000 Message-ID: <1547031913-30662-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24348.003 X-TM-AS-Result: No-5.365200-4.000000-10 X-TMASE-MatchedRID: uVuWzlu52Rn7QDxH6/HD2/VFR4sC8dPyhQmqvbplssnfUZT83lbkEP6H 09lVn6845gzTRYDPXRTzCSXn9DPdfJsYdIGP6PlZngIgpj8eDcAZ1CdBJOsoY8RB0bsfrpPIfiA qrjYtFiQhHdATfFI26uI8cDplGyt9cd2+Z66VWjCeDZuOW0FH137cGd19dSFd X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.365200-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24348.003 X-MDID: 1547031924-sFBrqTAe-m98 Subject: [dpdk-dev] [PATCH] net/sfc: add missing header guard to TSO header file 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: Wed, 09 Jan 2019 11:05:25 -0000 From: Ivan Malov Add missing header guard, including compiler directive for cplusplus. Fixes: f1f575be9b76 ("net/sfc: put generalised TSO declarations in a header") Cc: stable@dpdk.org Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_tso.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/net/sfc/sfc_tso.h b/drivers/net/sfc/sfc_tso.h index 3d2faf549..f89aef07c 100644 --- a/drivers/net/sfc/sfc_tso.h +++ b/drivers/net/sfc/sfc_tso.h @@ -7,6 +7,13 @@ * for Solarflare) and Solarflare Communications, Inc. */ +#ifndef _SFC_TSO_H +#define _SFC_TSO_H + +#ifdef __cplusplus +extern "C" { +#endif + /** Standard TSO header length */ #define SFC_TSOH_STD_LEN 256 @@ -21,3 +28,9 @@ unsigned int sfc_tso_prepare_header(uint8_t *tsoh, size_t header_len, struct rte_mbuf **in_seg, size_t *in_off); + +#ifdef __cplusplus +} +#endif + +#endif /* _SFC_TSO_H */ -- 2.17.1