根据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 <fw@strlen.de> 2016-06-22 13:26:10 +0200
committer   Pablo Neira Ayuso <pablo@netfilter.org> 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 <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

步骤

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

  2. 在本仓库搜索commit hash

  3. 展开commit内容下的tag

    commit.png
  1. 如上图为kernel 4.8开始包含此patch。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 2017年11月8日 【弟弟篇】心中牢记面对孩子耐心、平和是应该做的。今天接了弟弟放学后,就是陪伴着他在家里写作业...
    向着阳光00阅读 1,495评论 0 1
  • 我不会因为害怕而哭 我会因为孤寂而哭...
    苏久雨阅读 1,279评论 0 0
  • 我如果爱你—— 绝不像攀援的凌霄花,借你的高枝炫耀自己: 我如果爱你—— 绝不学痴情的鸟儿,为绿荫重复单调的歌曲;...
    五花丸阅读 1,292评论 0 0
  • 悠妈是个富态女子,发黑肤白眼睛大,妥妥的杨贵妃型美人。 她是土生土长的帝都人,皇城脚下的孩子生就一股傲视天下的派头...
    娘娘驾到阅读 2,849评论 2 2

友情链接更多精彩内容