From patchwork Fri Mar 2 03:46:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Esfahani via X-Patchwork-Id: 880263 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nongnu.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=akamai.com header.i=@akamai.com header.b="PzP3t/uz"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zswHq1ftsz9s72 for ; Fri, 2 Mar 2018 14:48:07 +1100 (AEDT) Received: from localhost ([::1]:60485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erbfx-0000Xf-8H for incoming@patchwork.ozlabs.org; Thu, 01 Mar 2018 22:48:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erbet-0000XS-GL for qemu-devel@nongnu.org; Thu, 01 Mar 2018 22:47:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erbep-0000nI-Eo for qemu-devel@nongnu.org; Thu, 01 Mar 2018 22:46:59 -0500 Received: from mx0a-00190b01.pphosted.com ([2620:100:9001:583::1]:47288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erbep-0000m7-46 for qemu-devel@nongnu.org; Thu, 01 Mar 2018 22:46:55 -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 w223g7Fu021636; Fri, 2 Mar 2018 03:46:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=from : to : cc : subject : date : message-id; s=jan2016.eng; bh=rKI/8vrrV9IIiy08/P5Enlwb7DdUYx+AG0DIXe557BQ=; b=PzP3t/uzd3qMs2tzT7dtqwgF3PXLgS5EgpCa1bDBGhIp00ZOzaRxo1+6KZQNjAoOhToh QJWTVKlYt9fW/UWO732lhZGt83E/8Ji5WCasvmwqTJQPSpBIRDekwOyjdAxzfqGXxoy7 F2RSlE2HoIxO7iVaKqtKufbG20FixH+if47YcFWI4+wuz4FE0N2AfJn5UrQTSdOK9q3G lgKBZp9gRMDHbJE0TK9xSgXkj9ldOOmenDQtn9uiO+/xa114Xnd1AIbB8huDv2BrLvZp P/yBBMKjIZsBWnn+Z2tEmGK2h+UEghGU+cOWcKRXLDdCFjpO4NbfIP93OKXhVkM9CTL6 1Q== Received: from prod-mail-ppoint2 (prod-mail-ppoint2.akamai.com [184.51.33.19]) by m0050095.ppops.net-00190b01. with ESMTP id 2gdqcaf9wh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Mar 2018 03:46:53 +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 w223k5HZ016024; Thu, 1 Mar 2018 22:46:51 -0500 Received: from prod-mail-relay11.akamai.com ([172.27.118.250]) by prod-mail-ppoint2.akamai.com with ESMTP id 2gb49ed8s0-1; Thu, 01 Mar 2018 22:46:51 -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 865CE33559; Fri, 2 Mar 2018 03:46:51 +0000 (GMT) To: mst@redhat.com Date: Thu, 1 Mar 2018 22:46:32 -0500 Message-Id: X-Mailer: git-send-email 1.9.1 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=294 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=285 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 0/4] virtio-net: allow linkspeed and duplex setting 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: Cameron Esfahani via Reply-To: Jason Baron Cc: jasowang@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Hi, Linux can now read linkspeed and duplex settings as set by the hypervisor: faa9b39 virtio_net: propagate linkspeed/duplex settings from the hypervisor This series thus adds qemu support. Michael Tsirkin requested that we pull in the linkspeed/duplex defines from include/linux/ethtool.h. I started to do that and it seems to require a number of addtional headers. It seemed like a lot of extra headers for only a few defines so I've added them all to include/net/eth.h. Also, this patchset depends on this header sync: https://lists.gnu.org/archive/html/qemu-devel/2018-02/msg07072.html Thanks, -Jason Jason Baron (4): eth: add speed and duplex definitions rocker: drop local duplex definitions virtio-net: use 64-bit values for feature flags virtio-net: add linkspeed and duplex settings to virtio-net hw/net/rocker/rocker_fp.c | 6 +--- hw/net/virtio-net.c | 81 ++++++++++++++++++++++++++++-------------- include/hw/virtio/virtio-net.h | 5 ++- include/net/eth.h | 7 ++++ 4 files changed, 66 insertions(+), 33 deletions(-)