根据linux kernel commit hash确定包含了该patch的kernel版本号

根据linux kernel commit hash确定包含了该patch的kernel版本号

commit 范例

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3183ab8997a477c8d9ad175a1cef70dff77c6dbc

author  Florian Westphal  2016-06-22 13:26:10 +0200
committer   Pablo Neira Ayuso  2016-06-24 11:03:28 +0200
commit  3183ab8997a477c8d9ad175a1cef70dff77c6dbc (patch)
tree    05fc36b7e2fa3b896cc412cdd8f0f1ac796965a3
parent  8eee54be73f4b938dbf48e95c0dbecb5f19b08ee (diff)
download    linux-3183ab8997a477c8d9ad175a1cef70dff77c6dbc.tar.gz
netfilter: conntrack: allow increasing bucket size via sysctl too
No need to restrict this to module parameter.

We export a copy of the real hash size -- when user alters the value we
allocate the new table, copy entries etc before we update the real size
to the requested one.

This is also needed because the real size is used by concurrent readers
and cannot be changed without synchronizing the conntrack generation
seqcnt.

We only allow changing this value from the initial net namespace.

Tested using http-client-benchmark vs. httpterm with concurrent

while true;do
 echo $RANDOM > /proc/sys/net/netfilter/nf_conntrack_buckets
done

Signed-off-by: Florian Westphal 
Signed-off-by: Pablo Neira Ayuso 

步骤

  1. linux kernel github地址:https://github.com/torvalds/linux

  2. 在本仓库搜索commit hash

  3. 展开commit内容下的tag

    根据linux kernel commit hash确定包含了该patch的kernel版本号_第1张图片
    commit.png
  1. 如上图为kernel 4.8开始包含此patch。

你可能感兴趣的:(根据linux kernel commit hash确定包含了该patch的kernel版本号)