From patchwork Fri Mar 2 03:46:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhijian Li (Fujitsu)\" via" X-Patchwork-Id: 10253169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 786E9602B5 for ; Fri, 2 Mar 2018 03:49:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6868C287C7 for ; Fri, 2 Mar 2018 03:49:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CB9A287CD; Fri, 2 Mar 2018 03:49:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AF25C287C7 for ; Fri, 2 Mar 2018 03:49:04 +0000 (UTC) Received: from localhost ([::1]:60492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erbgt-0001u8-Tc for patchwork-qemu-devel@patchwork.kernel.org; Thu, 01 Mar 2018 22:49:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erbf5-0000c9-Tr for qemu-devel@nongnu.org; Thu, 01 Mar 2018 22:47:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erbf1-0000zb-Ui for qemu-devel@nongnu.org; Thu, 01 Mar 2018 22:47:11 -0500 Received: from mx0a-00190b01.pphosted.com ([2620:100:9001:583::1]:47326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erbf1-0000z2-L9 for qemu-devel@nongnu.org; Thu, 01 Mar 2018 22:47:07 -0500 Received: from pps.filterd (m0050095.ppops.net [127.0.0.1]) by mx0a-00190b01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w223g7Fv021636; Fri, 2 Mar 2018 03:47:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : in-reply-to : references; s=jan2016.eng; bh=TnEvg7XsUWmpuj4Z/KqSleQREJ6HGgP/aOHGKY0lWtM=; b=gr9SmOaFA+ijb4NecbIhClNnrxyOsSOvbGiRBsJtqWzczbaoeKlKqs8hLgjaLqDEOZKB iV7yY/9wUJyB5V79CINQf0Y6TLbS4SrSpzza2w7kovuxgJzIDQKs5birXnn9sGhd92Y4 7H6fQlWTBV3DhZrjxQVUTMjoljk6+3DwDZjOdskkR4CR3YPdrOkpNMnXhcmakWiOepvS RzODmII60HHuLDQ/c+bPYvCYsZ12IZCxrQx2oldATFonL5QLdR+6aR9Cn1B0SgqHa/M5 7mZgdadI51z0d8NnZ1187FfQ3SU5z3s2dHP4Ov07BE//t1uyb/topl3X47xl46c+a15i +A== Received: from prod-mail-ppoint2 (prod-mail-ppoint2.akamai.com [184.51.33.19]) by m0050095.ppops.net-00190b01. with ESMTP id 2gdqcaf9wy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Mar 2018 03:47:05 +0000 Received: from pps.filterd (prod-mail-ppoint2.akamai.com [127.0.0.1]) by prod-mail-ppoint2.akamai.com (8.16.0.21/8.16.0.21) with SMTP id w223k5Kk016034; Thu, 1 Mar 2018 22:47:04 -0500 Received: from prod-mail-relay11.akamai.com ([172.27.118.250]) by prod-mail-ppoint2.akamai.com with ESMTP id 2gb49ed8se-1; Thu, 01 Mar 2018 22:47:04 -0500 Received: from bos-lpjec.kendall.corp.akamai.com (bos-lpjec.kendall.corp.akamai.com [172.28.13.109]) by prod-mail-relay11.akamai.com (Postfix) with ESMTP id 2EDA233624; Fri, 2 Mar 2018 03:47:04 +0000 (GMT) To: mst@redhat.com Date: Thu, 1 Mar 2018 22:46:34 -0500 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-03-02_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=748 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803020040 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-03-02_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=738 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803020039 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2620:100:9001:583::1 Subject: [Qemu-devel] [PATCH 2/4] rocker: drop local duplex definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jason Baron via Qemu-devel From: "Zhijian Li (Fujitsu)\" via" Reply-To: Jason Baron Cc: virtio-dev@lists.oasis-open.org, jasowang@redhat.com, Jiri Pirko , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Make use of duplex definitions from net/eth.h. Signed-off-by: Jason Baron Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: Jiri Pirko Cc: virtio-dev@lists.oasis-open.org --- hw/net/rocker/rocker_fp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/net/rocker/rocker_fp.c b/hw/net/rocker/rocker_fp.c index 4b3c984..13a14a0 100644 --- a/hw/net/rocker/rocker_fp.c +++ b/hw/net/rocker/rocker_fp.c @@ -16,17 +16,13 @@ #include "qemu/osdep.h" #include "net/clients.h" +#include "net/eth.h" #include "rocker.h" #include "rocker_hw.h" #include "rocker_fp.h" #include "rocker_world.h" -enum duplex { - DUPLEX_HALF = 0, - DUPLEX_FULL -}; - struct fp_port { Rocker *r; World *world;