Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp607842ybk; Wed, 13 May 2020 08:23:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfXfmVhktY0gXDSWNELXTRr4bkcUJqi5tt0NkYyAh1nwmAQ6qfoBiZ1B2vjo5R/ZDvQu6R X-Received: by 2002:aa7:df85:: with SMTP id b5mr164458edy.298.1589383395019; Wed, 13 May 2020 08:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589383395; cv=none; d=google.com; s=arc-20160816; b=ZBO+RIzz/A7NS/gFRvBmocqLvtiwd0+VcTAipzDE62detb94maEuCaE+F3RsuWONwq hM2ew5TEZK0p4c605Yv/1cS+qisuVvuNGKElBLoaoRk8K5G7cPUKmGk70RYQ6NG2YqDp w+XnYL6yw+P/JDbYTDtloDiXPR9ypIs1hKJR3hpEp1jnhXoTJWbNsj7ayxh70DbPVOhS pZLFMuX9oQPSsdM2a1ny5WjJrS+6qSlegyC9ZCG/YVp20NwwzTYIA6o5sh88Tkz/lYSI Rd7VUl8kemVGHy8l27zvj+SR5uIFc5v/GUOzB2WgubRHt99rDTbnYyThRWPi1BBuMPQN k5AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :subject:from:cc:to:dkim-signature; bh=jBoXYA5jC+1FdSc82MyGNu1Sk0AIstPxsVbxIsZVhsA=; b=frMpz9Cp2kAiBEj4nZ0lYn/ieisAF8gB9NoDhq8aq0Jty568SeBZhqep83zdA2YmeC u02GttBmItcxgWgPz6pFwWk+xGP1MeWTXmItpWXQJ7QVQQRB/KUcB+qHHBwNmVACuC4l vkXiJRrNZyK0E8D4RzZHhzHL5IZrY543pphX2KKs0J+sZiOpQwq13qWJyjLMEsicoVpp 1IkvmtCvfEUorGDI/pby4fuKVP9V6vgymlvC1G3NEMUxzSnSMpktLjJCWK0UPFlB4aam 1kwDYlN3f8pSYWXadhW74xEpcqE5rAFILaRKIqkFtIk/JsnVFFb+K2mkPApRzzl2o9Au JAWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bPQXgMTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw5si7608ejb.354.2020.05.13.08.22.52; Wed, 13 May 2020 08:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bPQXgMTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389143AbgEMPUu (ORCPT + 99 others); Wed, 13 May 2020 11:20:50 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:54694 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389124AbgEMPUt (ORCPT ); Wed, 13 May 2020 11:20:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589383248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jBoXYA5jC+1FdSc82MyGNu1Sk0AIstPxsVbxIsZVhsA=; b=bPQXgMTMqsKvo740A8vO1fTHQEDf11vAVFNExnWwgxT+M/WhPv1PBT9FOr1Vr6w6765lQt uLBrvi1mC53l1saCxEAhK0n6kTo17DMqFvVK3jj+LTdmHV5azbM7Mi/FJBGcW5JoZ0Dso5 0MpWUarCptvF7AQRVXRojjra+A8ikec= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-397-VuQquIe_OPSVs8fjvjQzFA-1; Wed, 13 May 2020 11:20:44 -0400 X-MC-Unique: VuQquIe_OPSVs8fjvjQzFA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3A84583DA41; Wed, 13 May 2020 15:20:43 +0000 (UTC) Received: from [10.72.12.111] (ovpn-12-111.pek2.redhat.com [10.72.12.111]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 264A260F8D; Wed, 13 May 2020 15:20:39 +0000 (UTC) To: netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Cc: kernel list , Jeff Layton , Patrick Donnelly From: Xiubo Li Subject: netfilter: does the API break or something else ? Message-ID: Date: Wed, 13 May 2020 23:20:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Experts, Recently I hit one netfilter issue, it seems the API breaks or something else. On CentOS8.1 with the recent upstream kernel built from source, such as 5.6.0-rc6/5.7.0-rc4. When running the following command: $ sudo bash -c 'iptables -A FORWARD -o enp3s0f1 -i ceph-brx -j ACCEPT' iptables v1.8.2 (nf_tables): CHAIN_ADD failed (Operation not supported): chain INPUT With the nftables command: $ sudo nft add chain ip filter INPUT { type filter hook input priority 0\; } Error: Could not process rule: Operation not supported add chain ip filter INPUT { type filter hook input priority 0; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ $  sudo nft add chain ip filter FORWARD { type filter hook forward priority 0\; } Error: Could not process rule: Operation not supported add chain ip filter FORWARD { type filter hook forward priority 0; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ $  sudo nft add chain ip filter OUTPUT { type filter hook output priority 0\; } Error: Could not process rule: Operation not supported add chain ip filter OUTPUT { type filter hook output priority 0; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ While tried them with downstream kernel 4.18.0-147.8.1.el8_1.x86_64, they all could work well. The nftables/libnftnl packages are: $ rpm -qa|grep nft nftables-0.9.0-14.el8.x86_64 libnftnl-1.1.1-4.el8.x86_64 And we have tried v5.7.0-rc4+ with f31 userspace, they all could work well too. From above I just suspect the API should break. Could someone kindly point out which and where ? Thanks BRs Xiubo