Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B84AFC433EF for ; Fri, 12 Nov 2021 19:24:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 970FC61039 for ; Fri, 12 Nov 2021 19:24:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235582AbhKLT1i (ORCPT ); Fri, 12 Nov 2021 14:27:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbhKLT1h (ORCPT ); Fri, 12 Nov 2021 14:27:37 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8F23C061767 for ; Fri, 12 Nov 2021 11:24:46 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id nh10-20020a17090b364a00b001a69adad5ebso8434934pjb.2 for ; Fri, 12 Nov 2021 11:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tPC1y85UwpV3K+jGt+fYsJ6aRQz3wozSnJS4ODXw5p0=; b=LCuNpWvyRFpCMGE6oAVSCaqgNfi4u9PwVuhsgvgrOY+GpDcGkFqMGQsT2EWSVtb4mK uOi3TAsgZYFNwBrFcG2L2X+3b+wbYFkggz3n471Yy0Qvb0B+SO1r7ylRCJk5zwbcs7LI HzzL/ep0O7JTETOtVCXemgBcusxLaa+pqn5zaG/ykvB5A7eqMmX4pWY0xGjHzqImMWpz f1EjQN2F00XTtjlyUJwhY/+1m/TJQPTnixZr5SoEalbeBveUf22aWtSGHlRlcEWsLVZ3 22pa2QO7B07N+BsEC+qAhwOm30lIYKD39HjSovBo3UU2lNsoORRw4heN8tkuA4ubi2ex ddNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tPC1y85UwpV3K+jGt+fYsJ6aRQz3wozSnJS4ODXw5p0=; b=TNActb46GpclZQ3sOulHiBO/bdq0nWW8UmZzaS4g7hbLILPayfLB5lgPcaI+EYCz1g Xyp/MuGWnVslOPc3gNCUK+T2vXBCP4cvfY+uxFG4MHaNYjCNt+r0SRwhpBTJ8PvHr3QZ PqxthKVkZIfXGJJddmSqo9MP3mWSi3XlXjr2Pf+ZWzLuukAOV1BJrdRMPbtVxRQjRKBM ec92cO1CNFt8LaERi2+F65sqF8oIDQ+R/7PZVfJ0PrtaZfEolxhxqA12B8Vg7Q0yf0Rm Tkfbn1stg83WZ2eXRaaDCmNK0l/ST6HreJJUuVobM4mMOG/txeoXcbwuytMqjUNU5gMd 750A== X-Gm-Message-State: AOAM530MMkzLmvEAlb8vbxQNihlyhHEAL4gUmCLroVJIQR4XU+Rfc3DR QEuFz103QAQ8WYl+14fmYAGhhw== X-Google-Smtp-Source: ABdhPJykGS84DZxzKGS5iqLCqWKIWICX3HvGkLJEt9jc5LLldBjIimkXY7AATfb/S7QlCFuh16JqVA== X-Received: by 2002:a17:90a:cf85:: with SMTP id i5mr39215754pju.101.1636745086312; Fri, 12 Nov 2021 11:24:46 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id e11sm5740100pjl.20.2021.11.12.11.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 11:24:46 -0800 (PST) Date: Fri, 12 Nov 2021 11:24:43 -0800 From: Stephen Hemminger To: Harshit Mogalapalli Cc: Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Jakub Kicinski , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "yangyingliang@huawei.com" Subject: Re: [External] : Re: [PATCH] net: sched: sch_netem: Refactor code in 4-state loss generator Message-ID: <20211112112443.729078c1@hermes.local> In-Reply-To: References: <20211112071447.19498-1-harshit.m.mogalapalli@oracle.com> <20211112081244.52218572@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Nov 2021 17:57:08 +0000 Harshit Mogalapalli wrote: > Hi Stephen, > > Yes, you are correct. > > To match the convention mapping should be like this instead: > > State 3 ---> LOST_IN_BURST_PERIOD > State 4 ---> LOST_IN_GAP_PERIOD > > > Thanks, > Harshit > ________________________________ > From: Stephen Hemminger > Sent: Friday, November 12, 2021 9:42 PM > To: Harshit Mogalapalli > Cc: Jamal Hadi Salim ; Cong Wang ; Jiri Pirko ; David S. Miller ; Jakub Kicinski ; netdev@vger.kernel.org ; linux-kernel@vger.kernel.org ; yangyingliang@huawei.com > Subject: [External] : Re: [PATCH] net: sched: sch_netem: Refactor code in 4-state loss generator > > On Thu, 11 Nov 2021 23:14:47 -0800 > Harshit Mogalapalli wrote: > > > Fixed comments to match description with variable names and > > refactored code to match the convention as per [1]. > > [1] S. Salsano, F. Ludovici, A. Ordine, "Definition of a general > > and intuitive loss model for packet networks and its implementation > > in the Netem module in the Linux kernel" > > > > Signed-off-by: Harshit Mogalapalli > > I wonder if this was changed accidently by this commit > Commit: a6e2fe17eba4 ("sch_netem: replace magic numbers with enumerate") > Could you resend with updated commit message and Fixes tag?